RA6M5怎么擦除flash

鱼䲆鱻䲜2026-01-18 16:25:1865

使用e2stdio 4.5.0版本,pyocd烧录,RA6m5芯片,在能正常烧录的情况下,由于重新建了一个Trustzone项目,烧录后就报错Error in final launch sequence
Failed to execute MI command:
load E:\e2Studio\project\test\Debug\test.elf
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load E:\e2Studio\project\test\Debug\test.elf
Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation和0000556 I Target type is r7fa6m5bf [board]
Exception in thread load-svd:
Traceback (most recent call last):
File "E:\e2Studio\python\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "E:\e2Studio\python\Lib\site-packages\pyocd\debug\svd\loader.py", line 72, in run
self._svd_location.load()
File "E:\e2Studio\python\Lib\site-packages\pyocd\debug\svd\loader.py", line 48, in load
self.device = SVDParser.for_xml_file(self.filename).get_device()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\e2Studio\python\Lib\site-packages\pyocd\debug\svd\parser.py", line 411, in get_device
return self._parse_device(self._root)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\e2Studio\python\Lib\site-packages\pyocd\debug\svd\parser.py", line 371, in _parse_device
peripherals.append(self._parse_peripheral(peripheral_node))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\e2Studio\python\Lib\site-packages\pyocd\debug\svd\parser.py", line 284, in _parse_peripheral
reg = self._parse_registers(register_node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\e2Studio\python\Lib\site-packages\pyocd\debug\svd\parser.py", line 170, in _parse_registers
dim_indices = range(int(m.group(1)), int(m.group(2)) + 1)
^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
0000711 I DP IDR = 0x6ba02477 (v2 rev6) [dap]
0000715 I debugvar 'TRCK_value' = 0x1 (1) [pack_target]
0000747 I AHB-AP#0 IDR = 0x84770001 (AHB-AP var0 rev8) [discovery]
0000766 I APB-AP#1 IDR = 0x54770002 (APB-AP var0 rev5) [discovery]
0000784 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xe00fe000 (designer=423 part=036) [rom_table]
0000803 I [0]<e0044000:CTI CS-400 class=9 designer=43b:Arm part=906 devtype=14 archid=0000 devid=40800:0:0> [rom_table]
0000814 I [1]<e0047000:Trace Funnel CS-400 class=9 designer=43b:Arm part=908 devtype=12 archid=0000 devid=32:0:0> [rom_table]
0000826 I [2]<e0048000:??? class=9 designer=43b:Arm part=961 devtype=21 archid=0000 devid=300:0:0> [rom_table]
0000832 I [3]<e0049000:TSGEN class=15 designer=43b:Arm part=101> [rom_table]
0000845 I [4]<e0040000:TPIU M33 class=9 designer=43b:Arm part=d21 devtype=11 archid=0000 devid=ca1:0:0> [rom_table]
0000852 I [5]<e00ff000:ROM class=1 designer=43b:Arm part=4c9> [rom_table]
0000853 I AHB-AP#0 Class 0x1 ROM table #1 @ 0xe00ff000 (designer=43b:Arm part=4c9) [rom_table]
0000868 I [0]<e000e000:SCS M33 class=9 designer=43b:Arm part=d21 devtype=00 archid=2a04 devid=0:0:0> [rom_table]
0000878 I [1]<e0001000:DWT M33 class=9 designer=43b:Arm part=d21 devtype=00 archid=1a02 devid=0:0:0> [rom_table]
0000890 I [2]<e0002000:BPU M33 class=9 designer=43b:Arm part=d21 devtype=00 archid=1a03 devid=0:0:0> [rom_table]
0000901 I [3]<e0000000:ITM M33 class=9 designer=43b:Arm part=d21 devtype=43 archid=1a01 devid=0:0:0> [rom_table]
0000912 I [5]<e0041000:ETM M33 class=9 designer=43b:Arm part=d21 devtype=13 archid=4a13 devid=0:0:0> [rom_table]
0000924 I [6]<e0042000:CTI M33 class=9 designer=43b:Arm part=d21 devtype=14 archid=1a14 devid=40800:0:0> [rom_table]
0000960 I CPU core #0: Cortex-M33 r0p4, v8.0-M architecture [cortex_m]
0000960 I Extensions: [DSP, FPU, FPU_V5, MPU, SEC] [cortex_m]
0000960 I FPU present: FPv5-SP-D16-M [cortex_m]
0000981 I 4 hardware watchpoints [dwt]
0000989 I 8 hardware breakpoints, 1 literal comparators [fpb]
0001024 I STDIO server started on port 4444 (core 0) [server]
0001062 I GDB server listening on port 3333 (core 0) [gdbserver]
Started by Eclipse Embedded CDT
0003673 I Client 1 connected on port 3333 from remote address localhost:64311 [gdbserver]
[---|---|---|---|---|---|---|---|---|----]
[0011485 E Client 1: Unhandled exception processing RSP command (v): target was not halted as expected after calling flash algorithm routine (IPSR=3) [gdbserver]
0011521 I Client 1 disconnected [gdbserver]
0012034 I STDIO server stopped [server]
0012035 I GDB server on port 3333 stopped [gdbserver]是什么原因造成的,怎么解决

浏览 (65)
点赞
收藏
评论
暂无数据