Skip to content

时钟速度很低时写内存操作会复位 #75

Description

@LX050724

设置一个很慢的速度比如10K使用pyocd写内存测试时中途hslink会复位
软硬件版本:1.3.1 2.4.4 SWD使用SPI模式,开启boost加速

>pyocd load  64Ktest.bin -t GD32F303VE -f 10000 -a 0x20000000
0000769 W Board ID FB8E is not recognized [mbed_board]
Exception in thread load-svd:
Traceback (most recent call last):
  File "C:\Program Files\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python311\Lib\site-packages\pyocd\debug\svd\loader.py", line 72, in run
    self._svd_location.load()
  File "C:\Program Files\Python311\Lib\site-packages\pyocd\debug\svd\loader.py", line 48, in load
    self.device = SVDParser.for_xml_file(self.filename).get_device()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\site-packages\pyocd\debug\svd\parser.py", line 74, in for_xml_file
    return cls(ET.parse(path), remove_reserved)
               ^^^^^^^^^^^^^^
  File "C:\Program Files\Python311\Lib\xml\etree\ElementTree.py", line 1218, in parse
    tree.parse(source, parser)
  File "C:\Program Files\Python311\Lib\xml\etree\ElementTree.py", line 580, in parse
    self._root = parser._parse_whole(source)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
xml.etree.ElementTree.ParseError: XML or text declaration not at start of entity: line 1, column 2
0001091 W Invalid coresight component, cidr=0x0 [rom_table]
0001297 I Loading 64Ktest.bin at 0x20000000 [load_cmd]
[============================                      ]  56%0016310 C Error: [Errno 5] Input/Output Error [__main__]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions