pyocd / pyOCD

Open source Python library for programming and debugging Arm Cortex-M microcontrollers
https://pyocd.io
Apache License 2.0
1.14k stars 485 forks source link

Regarding the problem with RT1052 errors #1028

Open LONGZR007 opened 3 years ago

LONGZR007 commented 3 years ago

I installed the PACK for RT1011 and then downloaded the HEX file using the Flash command, prompting me for the following information: 0000344:WARNING:cmsis_pack:Overlapping memory regions in file , deleting outer region. Further warnings will be suppressed for this file. 0000345:WARNING:cmsis_pack:CMSIS-Pack device MIMXRT1011xxxxx has no identifiable boot memory 0000725:WARNING:file_programmer:Failed to add data chunk: no memory region defined for address 0x60000400 0000726:INFO:loader:Erased 0 bytes (0 sectors), programmed 0 bytes (0 pages), skipped 0 bytes (0 pages) at 0.00 kB/s

When I added :memory id="IROM1" start="0x60000000" size="0x01000000" startup="1" default="1", I got the following information: 0000347:WARNING:cmsis_pack:Overlapping memory regions in file , deleting outer region. Further warnings will be suppressed for this file. 0000963:ERROR:board:link exception during target disconnect: Traceback (most recent call last): File "pyocd\probe\cmsis_dap_probe.py", line 285, in read_ap_result_callback File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 833, in read_reg_cb File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 143, in get_result File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 667, in flush File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 918, in _read_packet File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 451, in decode_data File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 358, in _decode_transfer_data File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 341, in _check_response pyocd.probe.pydapaccess.dap_access_api.DAPAccessIntf.TransferError: No ACK received

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "pyocd__main__.py", line 524, in do_flash File "pyocd\flash\file_programmer.py", line 158, in program File "pyocd\flash\loader.py", line 164, in commit File "pyocd\flash\builder.py", line 421, in program File "pyocd\flash\builder.py", line 319, in _build_sectors_and_pages File "pyocd\flash\builder.py", line 263, in fill_end_of_page_gap File "pyocd\flash\builder.py", line 222, in _enable_read_access File "pyocd\flash\flash.py", line 245, in init File "pyocd\flash\flash.py", line 585, in _call_function_and_wait File "pyocd\flash\flash.py", line 533, in wait_for_completion File "pyocd\core\soc_target.py", line 222, in get_state File "pyocd\coresight\cortex_m.py", line 828, in get_state File "pyocd\coresight\cortex_m.py", line 436, in read_memory File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\coresight\ap.py", line 883, in _read_memory File "pyocd\coresight\ap.py", line 864, in read_mem_cb File "pyocd\coresight\dap.py", line 603, in read_ap_cb File "pyocd\probe\cmsis_dap_probe.py", line 287, in read_ap_result_callback File "", line 3, in raise_from pyocd.core.exceptions.TransferError: No ACK received

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "pyocd\probe\cmsis_dap_probe.py", line 285, in read_ap_result_callback File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 833, in read_reg_cb File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 143, in get_result File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 667, in flush File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 918, in _read_packet File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 451, in decode_data File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 358, in _decode_transfer_data File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 341, in _check_response pyocd.probe.pydapaccess.dap_access_api.DAPAccessIntf.TransferError: No ACK received

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "pyocd\board\board.py", line 98, in uninit File "pyocd\core\soc_target.py", line 134, in disconnect File "pyocd\coresight\cortex_m.py", line 324, in disconnect File "pyocd\coresight\cortex_m.py", line 867, in resume File "pyocd\coresight\cortex_m.py", line 828, in get_state File "pyocd\coresight\cortex_m.py", line 436, in read_memory File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\coresight\ap.py", line 883, in _read_memory File "pyocd\coresight\ap.py", line 864, in read_mem_cb File "pyocd\coresight\dap.py", line 603, in read_ap_cb File "pyocd\probe\cmsis_dap_probe.py", line 287, in read_ap_result_callback File "", line 3, in raise_from pyocd.core.exceptions.TransferError: No ACK received 0000973:CRITICAL:main:No ACK received Traceback (most recent call last): File "pyocd\probe\cmsis_dap_probe.py", line 285, in read_ap_result_callback File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 833, in read_reg_cb File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 143, in get_result File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 667, in flush File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 918, in _read_packet File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 451, in decode_data File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 358, in _decode_transfer_data File "pyocd\probe\pydapaccess\dap_access_cmsis_dap.py", line 341, in _check_response pyocd.probe.pydapaccess.dap_access_api.DAPAccessIntf.TransferError: No ACK received

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "pyocd__main.py", line 362, in run File "pyocd\main__.py", line 524, in do_flash File "pyocd\flash\file_programmer.py", line 158, in program File "pyocd\flash\loader.py", line 164, in commit File "pyocd\flash\builder.py", line 421, in program File "pyocd\flash\builder.py", line 319, in _build_sectors_and_pages File "pyocd\flash\builder.py", line 263, in fill_end_of_page_gap File "pyocd\flash\builder.py", line 222, in _enable_read_access File "pyocd\flash\flash.py", line 245, in init File "pyocd\flash\flash.py", line 585, in _call_function_and_wait File "pyocd\flash\flash.py", line 533, in wait_for_completion File "pyocd\core\soc_target.py", line 222, in get_state File "pyocd\coresight\cortex_m.py", line 828, in get_state File "pyocd\coresight\cortex_m.py", line 436, in read_memory File "pyocd\utility\concurrency.py", line 28, in _locking File "pyocd\coresight\ap.py", line 883, in _read_memory File "pyocd\coresight\ap.py", line 864, in read_mem_cb File "pyocd\coresight\dap.py", line 603, in read_ap_cb File "pyocd\probe\cmsis_dap_probe.py", line 287, in read_ap_result_callback File "", line 3, in raise_from pyocd.core.exceptions.TransferError: No ACK received

LONGZR007 commented 3 years ago

I made a mistake with the title, but I'm using RT1011.