IMXRT1050 - Error while debuging

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMXRT1050 - Error while debuging

961 Views
dynamix
Contributor II

Hey folks,

Today, in the middle of debugging my program, I got some errors. After that, when I am trying to enter the debug mode and upload my program, I got the below errors:

MCUXpresso IDE RedlinkMulti Driver v11.2 (Sep 22 2020 13:27:40 - crt_emu_cm_redlink build 19)
Found chip XML file in /home/picovoice/work/gitlab/zoo-dev/mcu-fs/imxrt1050/imxrt1050-evkb/profile/Debug/MIMXRT1052xxxxB.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
============= SCRIPT: RT1050_connect.scp =============
RT1050 Connect Script
DpID = 0BD11477
APID = 0x04770041
Error: Wire Ack Wait Fault
Disabling MPU
Error: Wire Ack Wait Fault
Error: Wire Ack Wait Fault
Configure FlexRAM for 256KB OC RAM, 128KB I-TCM, 128KB D-TCM
Error: Wire Ack Wait Fault
Error: Wire Ack Wait Fault
Error: Wire Ack Wait Fault
Finished
============= END SCRIPT =============================
Probe Firmware: DAPLink CMSIS-DAP (ARM)
Serial Number: 0227000041114e450021300ac204003bdf91000097969900
VID:PID: 0D28:0204
USB Path: /dev/hidraw7
connection failed - Em(01). Cannot find MEM-AP selected by core index (check target power).. Retrying
Failed on connect: Em(01). Cannot find MEM-AP selected by core index (check target power)
Connected&Reset. Was: NotConnected. DpID: 0BD11477. CpuID: 00000000. Info: <None>
Last stub error 0: OK
Last sticky error: 0x0 AIndex: 0
No debug bus (MemAp) selected
DAP Speed test unexecuted or failed
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
(100) Target Connection Failed

 

I even tried to erase the flash, based on https://ask.embedded-wizard.de/3773/flashing-demos-on-imx-rt1050 , but I am getting the same error.

 

Could you please help me to fix this issue?

I really appreciate any help you can provide.

 

Edit: When I set the DIP Switch SW7 to OFF, OFF, OFF, ON, the error has changed to the below:

Sending VECTRESET to run flash driver
Driver V.2 dynamic startup failed - driver Init provided no flash parameters
Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters.
Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPIJ driver rc 7000 (0x1B58)
chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters.
failed to initialize flash driver MIMXRT1050_SFDP_HYPERFLASH.cfx
Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1050_SFDP_HYPERFLASH.cfx
Image 'iMXRT1050_SFDP_HYPERFLASH Sep 25 2020 10:49:29'
Opening flash driver MIMXRT1050_SFDP_HYPERFLASH.cfx
chip initialization failed - Ep(08). Cannot access core regs when target running.
failed to initialize flash driver MIMXRT1050_SFDP_HYPERFLASH.cfx

0 Kudos
3 Replies

958 Views
mjbcswitzerland
Specialist V

Hi

Put the board in ISP mode and see whether you can then program it.

Regards

Mark

 

0 Kudos

955 Views
dynamix
Contributor II

Hi Mark,

Can you elaborate more on ISP mode? I am new to NXP boards and do not know how to do that exactly.

0 Kudos

944 Views
mjbcswitzerland
Specialist V

Hi

See section 4 of https://www.utasker.com/docs/iMX/uTaskerV1.4_iMX.pdf

For your board the switches are on the top and SW7 needs to be set to 0101 for ISP mode and returned to 0110 for RUN mode.

In ISP mode the debugger should be able to grab hold of the processor even if you have code that is otherwise causing it to fail connection.

Try also binaries from https://www.utasker.com/iMX/RT1050.html in ISP mode too if you still have difficulties (or if you want to make general development and learning more efficient)

Regards

Mark

 

0 Kudos