You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(Microcontrollers) Is it possible to utilize .svd file to view target registers? #430
Given that an SVD file provides named register addresses for all microcontroller peripherals, does this debugger support attaching an SVD file to the launch configuration?
There many more of them in .SVD file. And they provide description of every peripheral register address, name, description and every field name, description offset. This allows when we are in debug session to navigate over this list rendered as a tree of names and view/set the value of them, for debug purposes, this can save time of reading datasheet or .svd file to find out the needed address. Its could be not easy, because for every bit field you need to sum the offset with baseAddress of register to see/change its value
changed the title [-]Is it possible to utilize .svd file to view target registers?[/-][+](Microcontrollers) Is it possible to utilize .svd file to view target registers?[/+]on Jun 6, 2024
To answer the initial question. Yes it is possible. And to possibly also answer it: someone would need to implement a configuration for reading this file and loading the registers in the already available register view. Maybe that someone could be you or someone you know?
Side note: There's a good debug extension specialized on debugging microcontrollers and it already has SVD support: Cortex Debug (and no, we sadly cannot copy any of its part as it has an incompatible license [you cannot take MIT-code and put it in a Public Domain code if you don't want to switch to MIT]).
Side note: There's a good debug extension specialized on debugging microcontrollers and it already has SVD support: Cortex Debug (and no, we sadly cannot copy any of its part as it has an incompatible license [you cannot take MIT-code and put it in a Public Domain code if you don't want to switch to MIT]).
I don't think this is correct. The license explicitly allows modifying and sub-licensing: https://github.com/Marus/cortex-debug?tab=MIT-1-ov-file
You can put the copied code and license in a separate folder. The license does not apply to other code.
Activity
GitMensch commentedon Jun 6, 2024
How does an SVD file looks like? Does it "somehow work" with GDB?
retif commentedon Jun 6, 2024
The manufacturer provides SVD(System View Description) file for every microcontroller, the insides are looks like this(snippet)
There many more of them in .SVD file. And they provide description of every peripheral register address, name, description and every field name, description offset. This allows when we are in debug session to navigate over this list rendered as a tree of names and view/set the value of them, for debug purposes, this can save time of reading datasheet or .svd file to find out the needed address. Its could be not easy, because for every bit field you need to sum the offset with baseAddress of register to see/change its value
[-]Is it possible to utilize .svd file to view target registers?[/-][+](Microcontrollers) Is it possible to utilize .svd file to view target registers?[/+]GitMensch commentedon Sep 13, 2024
To answer the initial question. Yes it is possible. And to possibly also answer it: someone would need to implement a configuration for reading this file and loading the registers in the already available register view. Maybe that someone could be you or someone you know?
Side note: There's a good debug extension specialized on debugging microcontrollers and it already has SVD support: Cortex Debug (and no, we sadly cannot copy any of its part as it has an incompatible license [you cannot take MIT-code and put it in a Public Domain code if you don't want to switch to MIT]).
ChrisIdema commentedon Jul 15, 2026
I don't think this is correct. The license explicitly allows modifying and sub-licensing:
https://github.com/Marus/cortex-debug?tab=MIT-1-ov-file
You can put the copied code and license in a separate folder. The license does not apply to other code.