Hello there I'm having the same issue that NVazquez had with a mimxrt1020 MCU and a Link to RAM application, I even tried using the GUI Flash Tool and I have the same result. It works when I debug the board but I'm in the process of creating the flashing script for releasing our product, that's why we need to make it work without the MCUxpresso IDE.
I'll appreciate any idea. Thanks in advace.
ERROR:
Executing flash operation 'Program' (Program file into flash: dcdc_pre_bootloader.bin) - Mon Oct 23 09:48:51 EDT 2023
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.7 (Mar 22 2023 09:52:55 - crt_emu_cm_redlink.exe build 13)
( 0) Reading remote configuration
Wc(03). No cache support.
Found chip XML file in D:/harv/spot_dcdc_arm/bootloader/mimx_pre_bootloader/dcdc_pre_bootloader/Debug\MIMXRT1021xxxxx.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
============= SCRIPT: RT1020_connect.scp =============
RT1020 Connect Script
DpID = 0BD11477
APID = 0x04770041
Disabling MPU
Configure FlexRAM for 128KB OC RAM, 64KB I-TCM, 64KB D-TCM
Finished
============= END SCRIPT =============================
Probe Firmware: MCU-LINK (r0FF) CMSIS-DAP V2.263 (NXP Semiconductors)
Serial Number: DTH4WNFIRYX5I
VID:PID: 1FC9:0143
USB Path: \\?\hid#vid_1fc9&pid_0143&mi_00#7&295a876e&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type = CoreSight DP (DAP DP ID 0BD11477) over SWD TAP 0
processor type = Cortex-M7 (CPU ID 00000C27) on DAP AP 0
number of h/w breakpoints = 8
number of flash patches = 0
number of h/w watchpoints = 4
Probe(0): Connected&Reset. DpID: 0BD11477. CpuID: 00000C27. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FD000: CID B105100D PID 000008E88C ROM (type 0x1)
ROM 1 E00FE000: CID B105100D PID 04000BB4C8 ROM (type 0x1)
ROM 2 E00FF000: CID B105100D PID 04000BB4C7 ROM (type 0x1)
ROM 3 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)
ROM 3 E0001000: CID B105E00D PID 04000BB002 Gen DWT (type 0x0)
ROM 3 E0002000: CID B105E00D PID 04000BB00E Gen (type 0x0)
ROM 3 E0000000: CID B105E00D PID 04000BB001 Gen ITM (type 0x0)
ROM 2 E0041000: CID B105900D PID 04001BB975 CSt ARM ETMv4.0 type 0x13 Trace Source - Core
ROM 2 E0042000: CID B105900D PID 04004BB906 CSt type 0x14 Debug Control - Trigger, e.g. ECT
ROM 1 E0040000: CID B105900D PID 04000BB9A9 CSt type 0x11 Trace Sink - TPIU
ROM 1 E0043000: CID B105F00D PID 04001BB101 Sys (type 0x0)
NXP: MIMXRT1021xxxxx
DAP stride is 1024 bytes (256 words)
( 65) Chip Setup Complete
Connected: was_reset=false. was_stopped=true
( 70) License Check Complete
File 'dcdc_pre_bootloader.bin' load failure: Ef(11). No flash configured.
(100) Target Connection Failed
Unable to perform operation!
Command failed with exit code 1
CMD:
crt_emu_cm_redlink --flash-load-exec "D:\harv\spot_dcdc_arm\bootloader\mimx_pre_bootloader\dcdc_pre_bootloader\Debug\dcdc_pre_bootloader.bin" -g --debug 2 --vendor NXP -p MIMXRT1021xxxxx --load-base=0x0 --ConnectScript RT1020_connect.scp --reset SOFT --flash-driver-reset SOFT --probeserial DTH4WNFIRYX5I -CoreIndex=0 -x D:/harv/spot_dcdc_arm/bootloader/mimx_pre_bootloader/dcdc_pre_bootloader/Debug --flash-dir C:/nxp/MCUXpressoIDE_11.7.1_9221/ide/plugins/com.nxp.mcuxpresso.tools.bin.win32_11.7.1.202303220859/binaries/Flash --flash-dir C:/Users/ElvysCollado/Documents/MCUXpressoIDE_11.7.1_9221/workspace/.mcuxpressoide_packages_support/MIMXRT1021xxxxx_support/Flash --flash-hashing