register contents

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

cross mob
yangyong
Level 5
Level 5
Distributor - Jingchuan(GC)
5 comments on blog First comment on blog 50 questions asked

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

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

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.

View solution in original post

0 Likes
5 Replies
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

Hello:

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

0 Likes
yangyong
Level 5
Level 5
Distributor - Jingchuan(GC)
5 comments on blog First comment on blog 50 questions asked

yes, i want  to see a specific register value 。

0 Likes
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

  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
yangyong
Level 5
Level 5
Distributor - Jingchuan(GC)
5 comments on blog First comment on blog 50 questions asked

 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
Moderator
250 sign-ins First comment on KBA 10 questions asked

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