cancel
Showing results for 
Search instead for 
Did you mean: 

Memory View VS Code

bibble235
Associate III

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

2 REPLIES 2
KnarfB
Principal III

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

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