cancel
Showing results for 
Search instead for 
Did you mean: 

In STM32CubeMonitor is it possible to monitor a register ?

WWant.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
WWant.1
Associate II

Hi rromano001,

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

Best regards

View solution in original post

8 REPLIES 8
stephane.legargeant
ST Employee

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.1
Associate II

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

rromano001
Senior

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.

S.Ma
Principal

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

WWant.1
Associate II

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

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

AC6 IDE has profiler.

WWant.1
Associate II

Hi rromano001,

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

Best regards

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