Skip to main content
Visitor II
July 15, 2020
Solved

In STM32CubeMonitor is it possible to monitor a register ?

  • July 15, 2020
  • 6 replies
  • 2625 views

Hello,

In STM32CubeMonitor in the variables node, we can add variable from the content of the RAM. Is it possible to do the same thing with the content of a register ? I want to monitor the sp register of an STM32F4.

    This topic has been closed for replies.
    Best answer by WWant.1

    Hi rromano001,

    Thanks for your help, I wilI see if STM32CubeIDE it may be the right solution.

    Best regards

    6 replies

    ST Employee
    July 15, 2020

    Hello

    It is possible to monitor the peripherals registers (GPIO, TIMER, ...) which are mapped in memory. But it is NOT possible for the core registers.

    Best regards

    WWant.1Author
    Visitor II
    July 15, 2020

    thank you for your reply. Will this be possible in a future update?

    Do you know of any tools that can monitor memory usage? stack size, etc ...

    Best regards

    Visitor II
    July 15, 2020

    Hi Stm32cubeide can.

    Cube monitor can inspect variables. You can add code to periodic interrupt that copy SP content to a variable in ram. After that you can monitor register indirectly.

    Visitor II
    July 15, 2020

    registers change too fast vs undersampling by swd... for what practical use?

    WWant.1Author
    Visitor II
    July 16, 2020

    Thank you for your reply.

    I just want to do an analysis of memory usage during an execution. See the evolution of the size of the stack and the heap. Know the memory use in RAM and CCRAM section.

    I understood that STM32CubeMonitor is not made for that. However, do you have a tool to do this kind of analysis?

    Best regards

    Visitor II
    July 16, 2020

    Hi WWant, sorry Inspected debug menu, STM32CubeIDE has no profiler.

    AC6 IDE has profiler.

    WWant.1AuthorAnswer
    Visitor II
    July 17, 2020

    Hi rromano001,

    Thanks for your help, I wilI see if STM32CubeIDE it may be the right solution.

    Best regards

    Visitor II
    July 19, 2020

    Hi WWant, please accept my apologizes about wrong answer:

    AC6 IDEalso known as Sytem Workbench for STM32 has profiler, STMCube is not integrated.

    STMCubeIDE at first glance resemble AC6 with Cube integrated. At close inspection some tools are not present.

    Profiler you need for inspecting is not there.

    Sorry again about first time I reply for.

    Best regards