Hello,
I have been using mm9z1-638 to develop a BMS device recently and encountered a strange issue.
The problem is as follows:
when I tried to add a delay in a regular task by executing the 'nop' instruction 500 times, it caused the system to fail entering the stop mode. At this point, the current consumption is less than 1mA. This phenomenon almost always occurs. However, when I remove the corresponding delay, everything works fine.
My question is, what is the relationship between using common delay functions in regular tasks and system sleep modes?
Here is my delay function:
delay_ms = 500;
while (delay_ms--)
Nop();
Hi Mu,
there should be no relation between your Nop delay and the stop mode.
In general having the debugger connected whilst entering / exiting low power mode can have issues!!
- Have you tried without a debugger connected?
- Are the Reset/Reset_A connected? (No 470nF)?
Hello Mu,
I would like just to inform you that our MM9Z1_638 expert is currently out of the office, but should be back at work in the second half of this week. So please expect some delay in his response.
Best regards,
Tomas