Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

ModusToolbox™ General Forum Discussions

yoya_4785701
Level 4
25 replies posted First like given First like received
Level 4

  When I debug the program,How can I see the contents of a register。For example, tcpwm register。thanks!

0 Likes
5 Replies
Zhengbao_Zhang
Moderator
Moderator First comment on KBA 10 questions asked 5 questions asked
Moderator

Hello:

     Do you mean you want to see a specific register value of a chip when you are doing debug?

0 Likes
yoya_4785701
Level 4
25 replies posted First like given First like received
Level 4

yes, i want  to see a specific register value 。

0 Likes
Zhengbao_Zhang
Moderator
Moderator First comment on KBA 10 questions asked 5 questions asked
Moderator

  from my experience, you need to add code to read out the value if you know the Register address.

Then you can add the address to the watch window, you can see the value change when you are doing debugging.

0 Likes
yoya_4785701
Level 4
25 replies posted First like given First like received
Level 4

 the register address is 0x40380000, How can I add this address to the  watch window?

yoya_4785701_0-1658911410659.png

 

0 Likes
Zhengbao_Zhang
Moderator
Moderator First comment on KBA 10 questions asked 5 questions asked
Moderator

I think if the address is from a device, you need to add code to read it out to a variable with a period.

Then you can check the value of the variable.

0 Likes