cancel
Showing results for 
Search instead for 
Did you mean: 

How to monitor SCB registers with VS code during debugging?

mani9989
Associate III

Hello Team, 

Since SCB and other core registers are not included in the SVD file for STM32H5, could you please advise on the best way to access or monitor SCB registers (e.g., VTOR, AIRCR, ICSR) during debugging in VS Code with PlatformIO?

Specifically, I'm looking for guidance on:

  1. How to inspect SCB register values during a debug session (e.g., trap cause, exception entry).

  2. Recommended approach to capture trap/exception information like:

    • HardFault status (HFSR)

    • Configurable Fault Status (CFSR)

    • Bus Fault (BFAR)

    • MemManage Fault (MMFAR)

  3. Any suggestions for manual mapping or watch expressions in the debugger that would allow me to monitor these registers, since they’re not shown in the peripheral view.

Any tips or best practices for bare-metal Cortex-M33 debugging without full SVD support would be greatly appreciated.

Best regards,
Manikanta 

10 REPLIES 10
Nawres GHARBI
ST Employee

Hi @mani9989 

just to understand, you need support on PlatformIO ?

Hello @Nawres GHARBI ,

I wanted to readout the SCB information when a trap occurs. 

BR
Mani 

Nawres GHARBI
ST Employee

you can use the fault status register view in the debug pane of VSCode

 

NawresGHARBI_0-1752670743589.png

 

mani9989_0-1752677740244.png


i dont see the fault registers 

 

Nawres GHARBI
ST Employee

which version of the extension are you running ?

These are the svd files we are using. 
STM32H533.svd

 

I have the attached the same.

 

Best Regards,

Manikanta 

Nawres GHARBI
ST Employee

could you share which version of the STM32Cube extension for VSCode you are using ?

hello @Nawres GHARBI 
i am using the platform io framework . 

Best Reagrds,

Manikanta 

Nawres GHARBI
ST Employee

so I invite you to use our extension where you will find more features