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

Access Breakpoint on float not possible?

Hi,

I am using an STM32F4 / Cortex-M4 and MKD-ARM 5.18a

following my last question and starting a bit more simple.

I can set an ACCESS BREAKPOINT with a condition (not a CONDITIONAL BREAKPOINT) on a integer variable:
BS write uiDebug == 0

But i can't set the same thing for a floating point variable.
BS write fDebug == 0
results in: error 71: invalid expression type

Keil User Guide says: Expression must reduce to a memory address and memory type
But want does this mean?

Timo

Parents
  • Hi,

    I managed to set the desired breakpoint by using the following command:

    BS WRITE (*((unsigned long *)0x20000F08)) == 0x3D99999A
    

    0x20000F08 is the address of the float and 0x3D99999A is the desired value in hex.

    Bonus: now i can trigger on the event of my float getting set to NaN.

    BS WRITE (*((unsigned long *)0x20000F08)) == 0x7FC00000
    

    thank you

Reply
  • Hi,

    I managed to set the desired breakpoint by using the following command:

    BS WRITE (*((unsigned long *)0x20000F08)) == 0x3D99999A
    

    0x20000F08 is the address of the float and 0x3D99999A is the desired value in hex.

    Bonus: now i can trigger on the event of my float getting set to NaN.

    BS WRITE (*((unsigned long *)0x20000F08)) == 0x7FC00000
    

    thank you

Children