12-04-2023, 07:16 PM
Empty description elements in an SVD file appear to crash EmBitz. (EmBitz 2.50 on Windows 11)
The below small SVD file will crash Embitz when I run "Start/Stop Debug Session". If I add some text to the description element, it does not crash.
<?xml version="1.0" encoding="utf-8"?>
<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_1.xsd">
<name>TEST</name>
<version>1.0</version>
<description></description>
<cpu>
<name>CM0</name>
<revision>r0p0</revision>
<endian>little</endian>
<mpuPresent>0</mpuPresent>
<fpuPresent>0</fpuPresent>
<nvicPrioBits>2</nvicPrioBits>
<vendorSystickConfig>0</vendorSystickConfig>
</cpu>
<addressUnitBits>8</addressUnitBits>
<width>32</width>
<size>32</size>
</device>
The below small SVD file will crash Embitz when I run "Start/Stop Debug Session". If I add some text to the description element, it does not crash.
<?xml version="1.0" encoding="utf-8"?>
<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD_Schema_1_1.xsd">
<name>TEST</name>
<version>1.0</version>
<description></description>
<cpu>
<name>CM0</name>
<revision>r0p0</revision>
<endian>little</endian>
<mpuPresent>0</mpuPresent>
<fpuPresent>0</fpuPresent>
<nvicPrioBits>2</nvicPrioBits>
<vendorSystickConfig>0</vendorSystickConfig>
</cpu>
<addressUnitBits>8</addressUnitBits>
<width>32</width>
<size>32</size>
</device>