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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

420件の閲覧回数
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();
タグ(1)
0 件の賞賛
2 返答(返信)

337件の閲覧回数
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 件の賞賛

354件の閲覧回数
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 件の賞賛