Include svd_path in myboard.json

Hi,
I created a custom platform and board.
I added svd path in myboard.json file like that :

“debug”: {
“openocd_chipname”: “at91same51n19”,
“openocd_target”: “atsame5x”,
“svd_path”: “ATSAME51N19A.svd”
},

But that doesn’t create a svdPath in launch.json file.
it only works when i add “debug_svd_path” in platformio.ini file.

I would like to know what to do.

Kevin

And how did you do that exactly? What is the resulting launch.json?

platformio.ini :

[env:oi_core]
platform = openindus
board = oi_core
framework = openindus
debug_tool = atmel-ice
upload_protocol = atmel-ice
debug_svd_path = C:\Users\Kevin.platformio\platforms\openindus\svd\ATSAME51N19A.svd

launch.json:

{
“version”: “0.2.0”,
“configurations”: [
{
“type”: “platformio-debug”,
“request”: “launch”,
“name”: “PIO Debug”,
“executable”: “c:/Users/Kevin/Documents/PlatformIO/Projects/test2/.pio/build/oi_core/firmware.elf”,
“toolchainBinDir”: “C:/Users/Kevin/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin”,
“svdPath”: “C:/Users/Kevin/.platformio/platforms/openindus/svd/ATSAME51N19A.svd”,
“preLaunchTask”: {
“type”: “PlatformIO”,
“task”: “Pre-Debug”
},
“internalConsoleOptions”: “openOnSessionStart”
},
{
“type”: “platformio-debug”,
“request”: “launch”,
“name”: “PIO Debug (skip Pre-Debug)”,
“executable”: “c:/Users/Kevin/Documents/PlatformIO/Projects/test2/.pio/build/oi_core/firmware.elf”,
“toolchainBinDir”: “C:/Users/Kevin/.platformio/packages/toolchain-gccarmnoneeabi@1.40804.0/bin”,
“svdPath”: “C:/Users/Kevin/.platformio/platforms/openindus/svd/ATSAME51N19A.svd”,
“internalConsoleOptions”: “openOnSessionStart”
}
]
}

You have to put this ATSAME51N19A.svd to PLATFORM_ROOT/misc/svd directory

It works. thank you !