This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cortex M4, setting HW watchpoints?

I haven't been able to get a watchpoint to work.

I'm playing with an STM32F4 series device and I'm using Atollic TrueSTUDIO for debugging.

I'd like to use a function for setting up a watchpoint, and I guess the debug events are handled right, because the breakpoints set via the IDE work fine,

but I haven't been able to get a watchpoint to work.

What am I missing?

(I seem to have problems with code-tags. I'll try to put the code tnto the next posting.)

Parents
  • Some update:

    I checked that in our system thread mode is privileged (by reading the CONTROL register). So accessing the debug registerd should be allowed.

    Then I read the DHCSR and it was zero. DEMCR was also zero even after I tried to set the TRCENA-bit.

    Any idea what keeps the TRCENA-bit low? The running debugger (SWD)?

    To my understanding STM32F427 should have watchpoints implemented.

Reply
  • Some update:

    I checked that in our system thread mode is privileged (by reading the CONTROL register). So accessing the debug registerd should be allowed.

    Then I read the DHCSR and it was zero. DEMCR was also zero even after I tried to set the TRCENA-bit.

    Any idea what keeps the TRCENA-bit low? The running debugger (SWD)?

    To my understanding STM32F427 should have watchpoints implemented.

Children
No data