How to show registers value Dynamically at run time in debug ?

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

How to show registers value Dynamically at run time in debug ?

936 Views
crouse
Contributor I

Hi, Everybody


I need to check the value of registers in debug mode,


but the registers value field just show "Registers not accessible at runtime",


how should I do ?


IDE : Codewarrior 10.4

 

Question : how to show registers(like PTAD value) value Dynamically at run time in debug ?


5976_5976.jpgRegisters can not accessible at runtime.JPG.jpg

Labels (1)
0 Kudos
4 Replies

582 Views
pavel_sadek
NXP Employee
NXP Employee

Hi

I have no solution in REGISTERS view for you, however you can see the changing values in registers directly in memory view

http://mcuoneclipse.com/2013/01/27/live-view-for-variables-and-memory/

I am toggling PTAD1 located in adress 0 with 1 second period and it is visible - value in RED,

just be sure to enable refresh while running (two arrows button in top right of my snapshot)

Výstřižektogl.PNG

Pavel

0 Kudos

582 Views
crouse
Contributor I

Thanks,

I try it in your way,

but still a little not convenience for me  

I start missing CW6.x that can period show the registers value directly , :smileyplain:

Registers can accessible at runtime.JPG.jpg

0 Kudos

582 Views
luisburgos
NXP Employee
NXP Employee

Hi,

You can see your values refreshing easily:

1) Go to Debug Configurations...

debug config.png

2) Go to Debugger and set the refresh time (minimum 0.5 seconds):

debugger.png

3) Debug your project and go to Reflesh, click on Refresh while running:

refresh.png

4) Run your project and you will be able to see how your registers and variables are refreshing.

I hope this helps, Burgos.

0 Kudos

582 Views
crouse
Contributor I

Hi, Luis :

Thanks for your suggest,

But It's just can display user define registers & variables,

can't show system registers values dynamically.  

I got a idea like this :

My_PTD1 = PPORT_PTDD_PTDD1;

than I can read My_PTD1 value in period from Variables field.

0 Kudos