Skip to main content
bibble235
Associate III
Jun 24, 2023 1:21 AM UTC
Question

Memory View VS Code

Hi,

With VS Code I want to use the memory view which works fine for decimal. 

bibble235_0-1687569406473.png

But does not seem to work if I have 0x20000000.

Here is my launch.json in case

 

 {
 "name": "Launch2",
 "type": "cppdbg",
 "request": "launch",
 "cwd": "${workspaceFolder}",
 "program": "${command:cmake.launchTargetPath}",
 "MIMode": "gdb",
 "miDebuggerPath": "${command:vscode-embedded.st.gdb}",
 "miDebuggerServerAddress": "localhost:3333",
 //"debugServerPath": "${command:vscode-embedded.st.gdbserver}",
 "debugServerPath": "/opt/st/stm32cubeclt_1.12.1/STLink-gdb-server/bin/ST-LINK_gdbserver",
 
 "debugServerArgs": "--stm32cubeprogrammer-path ${command:vscode-embedded.st.cubeprogrammer} --swd --port-number 3333",
 "serverStarted": "Waiting for connection on port .*\\.\\.\\.",
 "stopAtConnect": true,
 "postRemoteConnectCommands": [
 {
 "text": "load ./build/debug/build/Test7.elf"
 }
 ],
 "logging": {
 "engineLogging": true
 },
 "preLaunchTask": "Build",
 "svdPath": "/opt/st/stm32cubeclt_1.12.1/STMicroelectronics_CMSIS_SVD/STM32F302.svd",
 },

 

Thanks

This topic has been closed for replies.

2 replies

KnarfB
Super User
Jun 24, 2023 6:11 AM UTC

Works for me if I enter 0x20000000 after pressing the + (Add new memory view).

Default stm32-for-vscode generated launch file used:

 

{
 "configurations": [
 {
 "showDevDebugOutput": "parsed",
 "cwd": "${workspaceRoot}",
 "executable": "./build/NUCLEO-L432KC.elf",
 "name": "Debug STM32",
 "request": "launch",
 "type": "cortex-debug",
 "servertype": "openocd",
 "preLaunchTask": "Build STM",
 "device": "stm32l432",
 "configFiles": [
 "openocd.cfg"
 ],
 "svdFile": "STM32L4x2.svd"
 }
 ]
}

 

I can even enter &_sdata and see the RAM (depending on your .ld file).

Check your Debug Console tab for suspicious output.

hth

KnarfB

bibble235
bibble235Author
Associate III
Jun 24, 2023 11:24 AM UTC

It is strange and probably cortex-debug than stm32. On linux so may try them. Think I can manage with converting to decimal online