wrong location in registers window of CW10

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

wrong location in registers window of CW10

1,799 Views
woel
Contributor II

Hello,

 

if I debug the source for my MCF5485 based board, the showed locations and values in the registers window are wrong.The offset of MBAR is always missing. What is wrong?

 

Thank you

Labels (1)
0 Kudos
Reply
2 Replies

509 Views
CrasyCat
Specialist III

Hello

 

If you are remapping MBAR register in your application you need to let the debugger know about that.

 

In order to configure the debugger properly you need to update the Target Initialization file and the Memory Configuration file.

In Target Initialization file add a command writecontrolreg to initialize MBAR to its new value and adjust addresses of all subsequent writemem in the file.

 

In Memory Configuration File, the reserved areas in the register block must be changed as well.

 

Attached is the V7.2 Targeting manual, which describes the syntax and usage of target Initialization file and memory Configuration file.

The information is missing in V10.0 targeting manual.

 

CrasyCat

0 Kudos
Reply

509 Views
woel
Contributor II

Hello,

 

the config and mem files should be OK. I have also tested a generated project with default config and mem files and its the same. I have attached a screen shot of CW10 with the register window. The Supervisor Registers are shown correct, also the MBAR register has the right value of 0x10000000. But the others have wrong values and wrong locations.

0 Kudos
Reply