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

Setting all 8 breakpoints

Hi everyone,

I am debugging an application on a STM32F4 in flash with a ULINK.
I read one of the features for the ULINK should be 8 breakpoints, but after the 6th breakpoint I get an error message.
Isn't it possible to use all 8 breakpoints?
Maybe can I use 8 breakpoints with another device?

Can you help me with this?

Warden

Parents Reply Children
  • The error I get is: 'Cannot set breakpoint. All hardware breakpoints in use.'

    So I cannot use 8, but only 6 breakpoints?

  • So I cannot use 8, but only 6 breakpoints?

    If I understand the Cortex-M4 Technical Reference Manual correctly, you should expect a maximum of 6 breakpoints.

    About the Flash Patch and Breakpoint Unit (FPB)
    ...
    A full FPB unit contains:
    ...
    - Six instruction comparators for matching against instruction fetches from Code space, and remapping to a corresponding area in System space. Alternatively, you can configure the comparators individually to return a Breakpoint Instruction (BKPT) to the processor core on a match, to provide hardware breakpoint capability.

    Other debugging facilities in the Cortex-M4 may provide a hardware breakpoint capability as well, but I didn't look into that.