pyOCD icon indicating copy to clipboard operation
pyOCD copied to clipboard

Exception in thread load-svd when flash app.bin to target.

Open xjtuecho opened this issue 2 years ago • 0 comments

Target: GD32F150C6T6 PACKS: GigaDevice.GD32F1x0_DFP.3.1.1.pack Command:$ pyocd flash app.bin --target gd32f150c8 --pack="$PACKS/GigaDevice.GD32F1x0_DFP.3.1.1.pack"

Flash Device...
Exception in thread load-svd:
Traceback (most recent call last):
  File "d:\dev\python36\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "d:\dev\python36\lib\site-packages\pyocd\debug\svd\loader.py", line 71, in run
    self._svd_location.load()
  File "d:\dev\python36\lib\site-packages\pyocd\debug\svd\loader.py", line 47, in load
    self.device = SVDParser.for_xml_file(self.filename).get_device()
  File "d:\dev\python36\lib\site-packages\pyocd\debug\svd\parser.py", line 74, in for_xml_file
    return cls(ET.parse(path), remove_reserved)
  File "d:\dev\python36\lib\xml\etree\ElementTree.py", line 1196, in parse
    tree.parse(source, parser)
  File "d:\dev\python36\lib\xml\etree\ElementTree.py", line 597, in parse
    self._root = parser._parse_whole(source)
  File "<string>", line None
xml.etree.ElementTree.ParseError: XML or text declaration not at start of entity: line 1, column 2

[---|---|---|---|---|---|---|---|---|----]
[========================================]
0001780:INFO:loader:Erased 0 bytes (0 sectors), programmed 0 bytes (0 pages), skipped 14336 bytes (14 pages) at 29.10 kB/s

xjtuecho avatar Jul 17 '21 02:07 xjtuecho