高中生
最后登录1970-1-1
在线时间 小时
注册时间2017-5-22
|
发表于 2020-6-20 10:57:39
|
显示全部楼层
楼主您好,我按照你的方式把pack包放入了指定了路径使用了命令 pyocd gdbserver --pack=C:\Users\Administrator\AppData\Local\cmsis-pack-manager\cmsis-pack-manager\Keil\Keil.STM32H7xx_DFP.2.5.0.pack
- C:\Users\Administrator>pyocd gdbserver --pack=C:\Users\Administrator\AppData\Local\cmsis-pack-manager\cmsis-pack-manager\Keil\Keil.STM32H7xx_DFP.2.5.0.pack
- 0000363:INFO:board:Target type is cortex_m
- 0000364:WARNING:board:Generic 'cortex_m' target type is selected; is this intentional? You will be able to debug but not program flash. To set the target type use the '--target' argument or 'target_override' option. Use 'pyocd list --targets' to see available targets types.
- 0000382:INFO:dap:DP IDR = 0x6ba02477 (v2 rev6)
- 0000391:INFO:ap:AP#0 IDR = 0x84770001 (AHB-AP var0 rev8)
- 0000400:INFO:ap:AP#1 IDR = 0x84770001 (AHB-AP var0 rev8)
- 0000407:INFO:ap:AP#2 IDR = 0x54770002 (APB-AP var0 rev5)
- 0000418:INFO:rom_table:AP#0 Class 0x1 ROM table #0 [url=home.php?mod=space&uid=5830]@[/url] 0xe00fe000 (designer=020 part=450)
- 0000424:INFO:rom_table:[0]<e00ff000:ROM class=1 designer=43b part=4c7>
- 0000424:INFO:rom_table: AP#0 Class 0x1 ROM table #1 @ 0xe00ff000 (designer=43b part=4c7)
- 0000434:INFO:rom_table: [0]<e000e000:SCS-M4 class=14 designer=43b part=00c>
- 0000437:INFO:rom_table: [1]<e0001000:DWT class=14 designer=43b part=002>
- 0000443:INFO:rom_table: [2]<e0002000:FPB class=14 designer=43b part=00e>
- 0000446:INFO:rom_table: [3]<e0000000:ITM class=14 designer=43b part=001>
- 0000451:INFO:rom_table:[1]<e0041000:ETM-M7 class=9 designer=43b part=975 devtype=13 archid=4a13 devid=0:0:0>
- 0000456:INFO:rom_table:[2]<e0043000:CTI class=9 designer=43b part=906 devtype=14 archid=0000 devid=40800:0:0>
- 0000460:INFO:rom_table:AP#2 Class 0x1 ROM table #0 @ 0xe00e0000 (designer=020 part=450)
- 0000468:WARNING:rom_table:Invalid coresight component, cidr=0x0
- 0000469:INFO:rom_table:[2]<e00e3000: cidr=0, pidr=0, component invalid>
- 0000475:WARNING:rom_table:Invalid coresight component, cidr=0x0
- 0000477:INFO:rom_table:[3]<e00e4000: cidr=0, pidr=0, component invalid>
- 0000486:INFO:rom_table:[4]<e00e5000:TSGEN class=15 designer=43b part=101>
- 0000489:ERROR:rom_table:Error attempting to probe CoreSight component referenced by ROM table entry #5: SWD/JTAG Transfer Fault @ 0xe00f0fbc-0xe00f0fff
- Traceback (most recent call last):
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\cmsis_dap_probe.py", line 343, in read_ap_multiple
- result = self._link.reg_read_repeat(count, ap_reg, dap_index=0, now=now)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 849, in reg_read_repeat
- return reg_read_repeat_cb()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 844, in reg_read_repeat_cb
- res = transfer.get_result()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 141, in get_result
- self.daplink.flush()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 658, in flush
- self._read_packet()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 887, in _read_packet
- decoded_data = cmd.decode_data(raw_data)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 449, in decode_data
- data = self._decode_transfer_data(data)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 356, in _decode_transfer_data
- self._check_response(data[2])
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 335, in _check_response
- raise DAPAccessIntf.TransferFaultError()
- pyocd.probe.pydapaccess.dap_access_api.DAPAccessIntf.TransferFaultError
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\rom_table.py", line 339, in _read_table
- self._handle_table_entry(entry, entryNumber)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\rom_table.py", line 389, in _handle_table_entry
- cmpid.read_id_registers()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\rom_table.py", line 109, in read_id_registers
- regs = self.ap.read_memory_block32(self.top_address + self.IDR_READ_START, self.IDR_READ_COUNT)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 142, in _locking
- return func(self, *args, **kwargs)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 680, in _read_memory_block32
- resp += self._read_block32(addr, n//4)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 142, in _locking
- return func(self, *args, **kwargs)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 640, in _read_block32
- resp = self.dp.probe.read_ap_multiple((self.ap_num << APSEL_SHIFT) | MEM_AP_DRW, size)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\cmsis_dap_probe.py", line 346, in read_ap_multiple
- six.raise_from(self._convert_exception(exc), exc)
- File "<string>", line 3, in raise_from
- pyocd.core.exceptions.TransferFaultError: SWD/JTAG Transfer Fault @ 0xe00f0fbc-0xe00f0fff
- 0000494:INFO:cortex_m:CPU core #0 is Cortex-M7 r1p1
- 0000505:INFO:cortex_m:FPU present: FPv5
- 0000509:INFO:dwt:4 hardware watchpoints
- 0000513:INFO:fpb:8 hardware breakpoints, 1 literal comparators
- 0000531:INFO:server:Semihost server started on port 4444 (core 0)
- 0000533:INFO:gdbserver:GDB server started on port 3333 (core 0)
- 0040649:INFO:gdbserver:One client connected!
- 0091762:INFO:gdbserver:Client disconnected!
- C:\Users\Administrator>pyocd gdbserver --pack=C:\Users\Administrator\AppData\Local\cmsis-pack-manager\cmsis-pack-manager\Keil\Keil.STM32H7xx_DFP.2.5.0.pack
- 0000363:INFO:board:Target type is cortex_m
- 0000363:WARNING:board:Generic 'cortex_m' target type is selected; is this intentional? You will be able to debug but not program flash. To set the target type use the '--target' argument or 'target_override' option. Use 'pyocd list --targets' to see available targets types.
- 0000377:INFO:dap:DP IDR = 0x6ba02477 (v2 rev6)
- 0000386:INFO:ap:AP#0 IDR = 0x84770001 (AHB-AP var0 rev8)
- 0000395:INFO:ap:AP#1 IDR = 0x84770001 (AHB-AP var0 rev8)
- 0000403:INFO:ap:AP#2 IDR = 0x54770002 (APB-AP var0 rev5)
- 0000414:INFO:rom_table:AP#0 Class 0x1 ROM table #0 @ 0xe00fe000 (designer=020 part=450)
- 0000420:INFO:rom_table:[0]<e00ff000:ROM class=1 designer=43b part=4c7>
- 0000420:INFO:rom_table: AP#0 Class 0x1 ROM table #1 @ 0xe00ff000 (designer=43b part=4c7)
- 0000430:INFO:rom_table: [0]<e000e000:SCS-M4 class=14 designer=43b part=00c>
- 0000434:INFO:rom_table: [1]<e0001000:DWT class=14 designer=43b part=002>
- 0000438:INFO:rom_table: [2]<e0002000:FPB class=14 designer=43b part=00e>
- 0000442:INFO:rom_table: [3]<e0000000:ITM class=14 designer=43b part=001>
- 0000446:INFO:rom_table:[1]<e0041000:ETM-M7 class=9 designer=43b part=975 devtype=13 archid=4a13 devid=0:0:0>
- 0000450:INFO:rom_table:[2]<e0043000:CTI class=9 designer=43b part=906 devtype=14 archid=0000 devid=40800:0:0>
- 0000454:INFO:rom_table:AP#2 Class 0x1 ROM table #0 @ 0xe00e0000 (designer=020 part=450)
- 0000460:WARNING:rom_table:Invalid coresight component, cidr=0x0
- 0000461:INFO:rom_table:[2]<e00e3000: cidr=0, pidr=0, component invalid>
- 0000464:WARNING:rom_table:Invalid coresight component, cidr=0x0
- 0000465:INFO:rom_table:[3]<e00e4000: cidr=0, pidr=0, component invalid>
- 0000472:INFO:rom_table:[4]<e00e5000:TSGEN class=15 designer=43b part=101>
- 0000474:ERROR:rom_table:Error attempting to probe CoreSight component referenced by ROM table entry #5: SWD/JTAG Transfer Fault @ 0xe00f0fbc-0xe00f0fff
- Traceback (most recent call last):
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\cmsis_dap_probe.py", line 343, in read_ap_multiple
- result = self._link.reg_read_repeat(count, ap_reg, dap_index=0, now=now)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 849, in reg_read_repeat
- return reg_read_repeat_cb()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 844, in reg_read_repeat_cb
- res = transfer.get_result()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 141, in get_result
- self.daplink.flush()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 658, in flush
- self._read_packet()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 887, in _read_packet
- decoded_data = cmd.decode_data(raw_data)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 449, in decode_data
- data = self._decode_transfer_data(data)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 356, in _decode_transfer_data
- self._check_response(data[2])
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 335, in _check_response
- raise DAPAccessIntf.TransferFaultError()
- pyocd.probe.pydapaccess.dap_access_api.DAPAccessIntf.TransferFaultError
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\rom_table.py", line 339, in _read_table
- self._handle_table_entry(entry, entryNumber)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\rom_table.py", line 389, in _handle_table_entry
- cmpid.read_id_registers()
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\rom_table.py", line 109, in read_id_registers
- regs = self.ap.read_memory_block32(self.top_address + self.IDR_READ_START, self.IDR_READ_COUNT)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 142, in _locking
- return func(self, *args, **kwargs)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 680, in _read_memory_block32
- resp += self._read_block32(addr, n//4)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 142, in _locking
- return func(self, *args, **kwargs)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\coresight\ap.py", line 640, in _read_block32
- resp = self.dp.probe.read_ap_multiple((self.ap_num << APSEL_SHIFT) | MEM_AP_DRW, size)
- File "c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pyocd\probe\cmsis_dap_probe.py", line 346, in read_ap_multiple
- six.raise_from(self._convert_exception(exc), exc)
- File "<string>", line 3, in raise_from
- pyocd.core.exceptions.TransferFaultError: SWD/JTAG Transfer Fault @ 0xe00f0fbc-0xe00f0fff
- 0000479:INFO:cortex_m:CPU core #0 is Cortex-M7 r1p1
- 0000489:INFO:cortex_m:FPU present: FPv5
- 0000493:INFO:dwt:4 hardware watchpoints
- 0000497:INFO:fpb:8 hardware breakpoints, 1 literal comparators
- 0000513:INFO:server:Semihost server started on port 4444 (core 0)
- 0000513:INFO:gdbserver:GDB server started on port 3333 (core 0)
复制代码 打印了这些信息,但是在F407上 和 F429 测试是不会打印这么多信息的,可以正确连接下载调试
|
|