MPC5604P DEBUG mode report an error

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

MPC5604P DEBUG mode report an error

849 Views
kabusiji
Contributor I

MCU:MPC5604P

IDE:codewarrier 5.9.0.PNG

debug mode Error:

err.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 Kudos
Reply
5 Replies

830 Views
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 Kudos
Reply

827 Views
kabusiji
Contributor I
The code runs normally in the MCU, but cannot enter debug mode
0 Kudos
Reply

804 Views
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 Kudos
Reply

746 Views
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 Kudos
Reply

794 Views
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 Kudos
Reply