MPC5604P DEBUG mode report an error

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

MPC5604P DEBUG mode report an error

2,165 次查看
kabusiji
Contributor I

MCU:MPC5604P

IDE:codewarrier 5.9.0.PNGcodewarrier 5.9.0.PNG

debug mode Error:

err.PNGerr.PNG

As shown in the figure,When I enter debug mode, the status window will show error,What does this error mean and how can I fix it.Please help me, thank you!

0 项奖励
回复
5 回复数

2,146 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Either you do not have code loaded in the micro or you access to memories is restricted by some protection mechanism.

First make sure you code in micro properly loaded.

In memory view I do not see any data.

Best regards,

Peter

0 项奖励
回复

2,143 次查看
kabusiji
Contributor I
The code runs normally in the MCU, but cannot enter debug mode
0 项奖励
回复

2,120 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The code runs normally in the MCU, but cannot enter debug mode

But from your screenshot I see your MCU is in debug mode. Status of debugger is ready and you are stopped at _start label. But on that address I see no code. So once you run or step code you will get illegal instruction exception.

What do you mean by runs normally? Is it spinning motor or blinking with LEDs or sending some commands on serial lines?

Best regards

Peter

@stanish can you comment here?

0 项奖励
回复

2,062 次查看
stanish
NXP Employee
NXP Employee

Hi,

This issue may occur when there is either a part of memory or a register that access the unmapped/unavailable memory.

I'd suggest closing all variable and memory debugger windows and restart the debug session.

 

  Hope it helps.

Stan

 

0 项奖励
回复

2,110 次查看
kabusiji
Contributor I
I don't know what's going on, but the debug mode works fine now, thank you very much for your reply
0 项奖励
回复