16
NXPTM M522XX, KINETIS and i.MX RT / boot up issues
« on: April 17, 2020, 08:31:41 PM »
Hi Mark
I have been using utasker on my MC52259 boards for years and most of the time it works no problem. I am using a fundamental 48 mhz crystal (ABM7-48.000MHZ-D2Y-F-T ) 18pf with load capacitors both being 33pf, and a 1M parallel resistor. Both CLCKMOD[1,0] pins are 0v, with XTAL=3.3v (through a pullup) . Occaionally I cant even program some boards . So I tried setting CLCKMOD[1,0] to 3.3v and leave off pullup with XTAL connection. This programs and if I run this , then it works fine, but if I try to debug the application the line
MCF_CLOCK_SYNCR = ((((PLL_MUL - 4)/2) << 12) | CLKSRC | PLLMODE | PLLEN | (POST_DIVIDE << ); // set up PLL to generate the required frequency
causes an illegal command error from cpu. Any idea why this would happen?
Best Regards
Neil
I have been using utasker on my MC52259 boards for years and most of the time it works no problem. I am using a fundamental 48 mhz crystal (ABM7-48.000MHZ-D2Y-F-T ) 18pf with load capacitors both being 33pf, and a 1M parallel resistor. Both CLCKMOD[1,0] pins are 0v, with XTAL=3.3v (through a pullup) . Occaionally I cant even program some boards . So I tried setting CLCKMOD[1,0] to 3.3v and leave off pullup with XTAL connection. This programs and if I run this , then it works fine, but if I try to debug the application the line
MCF_CLOCK_SYNCR = ((((PLL_MUL - 4)/2) << 12) | CLKSRC | PLLMODE | PLLEN | (POST_DIVIDE << ); // set up PLL to generate the required frequency
causes an illegal command error from cpu. Any idea why this would happen?
Best Regards
Neil