cancel
Showing results for 
Search instead for 
Did you mean: 

How to Debug Flash, RAM and Cortex-M peripherals values for STM32 in VSCode

Fumihiko
Associate

Hi, 

I am debugging an STM32H563ZI with the following environment:

  • OS: Ubuntu 20.04 LTS

  • STM32CubeMX: 6.15.0

  • Visual Studio Code: 1.102.3

    • Extensions:

      • STM32Cube Bundles Manager: 0.23.3

      • STM32Cube Debug STLink GDB Server: 0.10.1

      • STM32Cube Registers View: 0.3.0

  • Board: NUCLEO-H563ZI

In this setup, after launching the debugger, I cannot find a way to inspect the values in Flash, RAM, or the registers of the Cortex-M33 peripherals.

Regarding memory, I tried installing the "MemoryView" extension, but I am still unable to view the values. Are there any alternative extensions with similar functionality?

Regarding peripheral debugging, while I can see registers for peripherals like GPIO and ADC on STM32CUBE REGISTERS TREE, I cannot find the Cortex-M core peripherals like the SCB (System Control Block) and NVIC (Nested Vectored Interrupt Controller) . How can I view these?

1 REPLY 1
Florent V
ST Employee

Hi Fumihiko,

Unfortunately, it is not possible to view the Cortex-M registers yet, but this feature is planned in our roadmap.
Regarding the memory view, the STM32Cube for Visual Studio Code pack already includes a memory viewer, the one from CDT Cloud called Memory Inspector.

During a debug session, you can open the Memory Inspector via the Command Palette (Menu: View -> Command Palette...).
Then, filter the Command Palette by typing Memory: Show Memory Inspector.

FlorentV_0-1756471893492.png

FlorentV_1-1756471990453.png

Best Regards,

/Flo