Hello,
I built a project with KL03z board using MCUXpresso IDE, now I have to migrate to KDS. I encountered some problems during the process, so I decided to build from scratch and troubleshoot step by step.
One major problem is that the processor seems to run at a lower frequency ( I used the same TPM configuration btw) and this damages the functionality of the project. There is at least 7 microseconds between two flags when the TPM handler has nothing to do but clear the flag and toggle a pin. If I have more instructions that must be done between two flags this period grows longer.
So, I used the following function ( no TPM used) to toggle a pin an check the frequency with an oscilloscope ;
void delay( unsigned int time_del)
{
time_del *= X;
while (time_del--)
{
;
}
}
While using MCUXpresso, the value X is around 4.35 to count a million in one second, while in KDS I had to reduce it to 0.7 which is almost 6 times slower than the previuos case.
I thought maybe it's running in VLPR mode ( I think it doesn't switch from Normal Run unless configuered otherwise) and tried to disable other power modes and had no improvement.
Surely I'm missing something but I can't figure out what it is, so any sort of help would be highly appreciated
MSanad