Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SVD file crash on empty content [solved]
#1
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>
Reply
#2
I never tested that. I always used real vendor files.
I will solve this in the 2.6
Reply
#3
Me too, which is why I only discovered it now. I got hold of a pretty dirty SVD from somewhere which crashed EmBitz, but svdconv.exe said it was ok. I then tracked it down to some of the descriptions being empty.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)