Replies: 4 comments 3 replies
-
This would be really awesome, I would love to have the SVD available when debugging. For the SVD path, you should actually be able to get that information from |
Beta Was this translation helpful? Give feedback.
-
Made a start on this, unfortunately CMAKE's native support for JSON doesn't support JSON5 which means it cant cope with hex numbers in cmsis_mcu_descriptions.json5
|
Beta Was this translation helpful? Give feedback.
-
Progress so far is here if you add the below to your cmakelists it will work |
Beta Was this translation helpful? Give feedback.
-
@multiplemonomials any thoughts on parsing the JSON5 and setting MBED_SVD_NAME |
Beta Was this translation helpful? Give feedback.
-
To be able to debug at low level we need to support SVD files.
the easiest way at the moment is to add to launch.json(which gets overwritten), for example
"svdPath": "Keil::[email protected]",
"deviceName": "STM32WB55RGVx",
We already have deviceName in targets.json (device_name)
svdPath is a bit harder to do nicely since the packs are versioned and it doesn't seem obvious how to get the "latest" pack
Based on this we could add a new field to targets.json, perhaps "cmsis_pack"?
I assume then we need to set some variables in cmake here?
mbed-os/tools/cmake/UploadMethodManager.cmake
Line 56 in 5354079
Then add it launch.json here
mbed-os/tools/cmake/mbed_ide_debug_cfg_generator.cmake
Line 143 in 5354079
Happy to start a PR if this is the right approach.
Beta Was this translation helpful? Give feedback.
All reactions