Unable to parse SVD file: TypeError: Cannot read property '0' of undefined

PlatformIo version 4.3.3
OS: OSX 10.13.6
VSCODE

I have a ATSAMC21 svd file that generates a “Unable to parse SVD file: TypeError: Cannot read property ‘0’ of undefined” , when the debugger loads it . I also have a similar but different ATSAMD21.svd that is processed OK

What does Unable to parse SVD file: TypeError: Cannot read property ‘0’ of undefined, and where should I search the svd file etc

  • What’s your platformio.ini?
  • What’s your custom board JSON file if you have one?
  • What the SVD file you’re using?

I discovered what faults the parser , its a section in the official C21 SVD file pertaining to the PTC definition , this definition contains no viewable registers and the PIO parser seems not to handle that

This is not a platformio,ini issue

What would be “ nice “ is if the svd parser might actually give proper line numbers when it faults rather then a completely meaningless un-findable error message !!

Do you have a direct link to that file?

I’m not even sure whether the parser is written by PlatformIO or parsed by the VSCode IDE first, can you show where the error occurs (screenshot)?