2023-06-23 06:21 PM
Hi,
With VS Code I want to use the memory view which works fine for decimal.
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
2023-06-23 11:11 PM - edited 2023-06-23 11:12 PM
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
2023-06-24 04:24 AM
It is strange and probably cortex-debug than stm32. On linux so may try them. Think I can manage with converting to decimal online