µTasker Forum
µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: fcereja on May 09, 2011, 08:46:54 PM
-
Hi All,
I've made a board with a M52258 with an external 48 MHz oscillator. The design works perfect but doesn't start when powering up. After a hardware reset or ressetting with the BDM, it starts normally.
Does anybody have any idea about what can be the reason of that issue? Can it be the external oscillator which didn't start fast enough vs. the processor?
Thank you for any possible help.
Best Regards
Francis
-
Are the CLKMOD pins set correctly & have you initialised the clock registers to use the external oscillator? We made this mistake in the 1st version of our board, in the end we went back & looked at the M52259EVB schematic to spot the differences.
-
Problem has been solved.
We simply add a delay before switching from the internal relaxation oscillator (activated at startup) to the external oscillator.
File M5223X.c function "mcf52235_init" :
volatile int i;
for(i=0; i<100000; i++) { asm(nop);}