Skip to main content
Associate
November 14, 2024
Question

debug SFRs

  • November 14, 2024
  • 1 reply
  • 1010 views

I can't read/change the SFR values while debugging in CubeIDE .

value of all Registers is "error reading value"

If I try to do that IDE throughs and error.

The only way to read/change values is by suspending the debugging session.

I remember this feature was there in CubeIDE or am I missing something?

my stmide version is  1.16.1

Screenshot 2024-11-14 133954.png

0693W00000NqiAGQAZ.png

1 reply

Andrew Neil
Super User
November 14, 2024

@Saliwan128 wrote:

The only way to read/change values is by suspending the debugging session.


Indeed.

As the message says, you can't do that while the target is running - you have to  Halt:

AndrewNeil_0-1731583798759.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate
November 16, 2024

In fact, there is no way for me to see the registers live and without interruption during execution??

Do you have solution for this problem?