mcu-debug / peripheral-viewer

Standalone Peripheral(SVD) Viewer extension extracted from cortex-debug, now works with any debugger
MIT License
10 stars 5 forks source link

Cluster parsing fails if <resetValue> is present. #24

Open Gadicuz opened 1 year ago

Gadicuz commented 1 year ago

https://github.com/mcu-debug/peripheral-viewer/blob/eabf388e3983d9c0976631ce5da4982d907e6eee/src/svd-parser.ts#L374C16-L374C16

Replace baseOptions.resetValue = parseInteger(c.resetValue); with baseOptions.resetValue = parseInteger(c.resetValue[0]); to fix.