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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

608 次查看
gumu
Contributor V

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();
标记 (1)
0 项奖励
回复
2 回复数

525 次查看
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 项奖励
回复

542 次查看
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 项奖励
回复