Closed Scrath1 closed 1 year ago
Thanks for reporting this. The SVD spec changed at some point and this went un-noticed by us.
Since version 1.3 of the specification, the nesting of
elements is supported. Nested clusters express hierarchical structures of registers.
Looking into adding support for nested clusters
Since I don't have the HW, I hope you are willing to try a custom build. Can't say right now when that might be -- days or a week perhaps.
If you are in a hurry, in the meantime, there is another SVD viewer that you can try if you want. We interoperate with each other. It is Microsoft Embedded Tools
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-embedded-tools
In your launch.json change svdFile
to svdPath
and their extension will pick our debugger up. You can even use both :-) but that would be a waste of resources.
Thank you for the quick reply and for providing a temporary alternative, I am open to try the custom build whenever it is ready.
I can also confirm that the registers are displayed correctly with Microsoft Embedded Tools.
Oh, good to know.
Please try out a fix in V1.6.7-pre1 (this may get updated as additional releases are made, so download the latest)
https://github.com/Marus/cortex-debug/releases
Since I don't have any HW, can't check. The tree seems about right. However, I am skeptical of the address offsets for each register. If you can, please check them carefully.
The cluster is displayed now and the addresses seem correct. Thanks
A new release is now available in the marketplace with the fix...other changes too. It should trickle down unless auto-update is disabled or you can force an update.
Hello, I have an svd file with nested register clusters. The inner cluster is not displayed when using VSCode but the exact same svd file works flawlessly in Eclipse. The specific register cluster that I am missing is called M_TTCAN (see attached images).
Is this an issue with the svd file or something that the svd viewer in cortex-debug does not support?
This is the minimal example of the SVD file which I used for making the images above: