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