mm9z1-638:delay function with Nop will make system hang up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mm9z1-638:delay function with Nop will make system hang up

413 Views
gumu
Contributor IV

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();
Tags (1)
0 Kudos
2 Replies

330 Views
Q_man
NXP Employee
NXP Employee

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)?

 

0 Kudos

347 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

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

0 Kudos