Closed ontuo closed 3 years ago
I see the same error with a different SVD file. GDB parses it without any problems but cortex-debug throws that error. The root cause is that it doesn't handle the case of an empty fields section. @ontuo you should be able to work around the error by deleting lines 10823 and 10824 of your SVD.
Will look at fixing the paring here - thanks for the example.
I see the same error with a different SVD file. GDB parses it without any problems but cortex-debug throws that error. The root cause is that it doesn't handle the case of an empty fields section. @ontuo you should be able to work around the error by deleting lines 10823 and 10824 of your SVD.
Thank you! Worked for me.
While good that you've found a work-around, and I do encourage you to use it for the time being, it is something that the parser should handle - for that reason I'm going to re-open the issue to track this particular parsing bug.
Looks like this has been fixed a long time ago by PR #330 thanks to @alexclewontin. I remember merging it
I checked with the latest build, it works as intended.
Hi,
When creating a project, I try to add an svd config file and get the error:
Unable to parse SVD file: TypeError: Cannot read property 'map' of undefined
. Project params are:I thought that problem is with the svd file itself, but I checked it with cmsis checker and get this:
Found 0 Error(s) and 88 Warning(s).
And this one parsed it right. Link to svd file.Thanks, tuo