Skip to main content
Associate
October 29, 2023
Solved

Stm32 cube monitor show value zero

  • October 29, 2023
  • 1 reply
  • 2114 views

I am using STM32H503RB nucleoboard. I have initialized project from cubeMX with default settings and only added a variable 'x' which is incremented with 100ms period. On CubeMonitor, 'x' variable value is always zero. When I debug I can see variable is incrementing. How can it be possible? By the way I am using windows 11. 

By the way, I realized that if I work on STM32f4 discovery, everything is okay. It seems that stlink v3 may cause problem on stm32cube monitor. It is not related with windows 11 or 10

    This topic has been closed for replies.
    Best answer by stephane.legargeant

    Hello

    There are some points to check in the wiki help :  STM32CubeMonitor:Troubleshooting - stm32mcu

    For the STM32H503, the debug port is port 1.  It is necessary to set the "Access point" to 1 in the "variables" node.

    As usually the port 0 is used, it may be set to 0 in your flow and in this case the value returned is always 0. Can you check if you have the "access point" set to 1 ? 

    Please let us know if it helps.  Thank you.

    1 reply

    stephane.legargeant
    ST Employee
    October 30, 2023

    Hello

    There are some points to check in the wiki help :  STM32CubeMonitor:Troubleshooting - stm32mcu

    For the STM32H503, the debug port is port 1.  It is necessary to set the "Access point" to 1 in the "variables" node.

    As usually the port 0 is used, it may be set to 0 in your flow and in this case the value returned is always 0. Can you check if you have the "access point" set to 1 ? 

    Please let us know if it helps.  Thank you.

    bepotAuthor
    Associate
    October 31, 2023

    Thank you. It is working now.