MCIMXRT1052 Failed to initialize RAMCode

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

MCIMXRT1052 Failed to initialize RAMCode

377 Views
vandana
Contributor I

Hi, I am facing problem in programing MCIMXRT1052, it a custom board, I am using J-link 5.1 and segger j-link 6.32. it return with error code -5 . please help its urgent . 

 

 

SEGGER J-Link Commander V6.32 (Compiled Apr 20 2018 17:25:19)
DLL version V6.32, compiled Apr 20 2018 17:25:02

Connecting to J-Link via USB...O.K.
Firmware: J-Link Ultra V5-1 compiled Mar 30 2022 10:17:26
Hardware version: V5.10
S/N: 505103349
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
VTref=3.300V (fixed)


Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: MCIMXRT1052
Type '?' for selection dialog
Device>
Please specify target interface:
J) JTAG (Default)
S) SWD
TIF>s
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "MCIMXRT1052" selected.


Connecting to target via SWD
Found SW-DP with ID 0x0BD11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770041)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FD000
CPUID register: 0x411FC271. Implementer code: 0x41 (ARM)
Found Cortex-M7 r1p1, Little endian.
FPUnit: 8 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FD000
ROMTbl[0][0]: E00FE000, CID: B105100D, PID: 000BB4C8 ROM Table
ROMTbl[1] @ E00FE000
ROMTbl[1][0]: E00FF000, CID: B105100D, PID: 000BB4C7 ROM Table
ROMTbl[2] @ E00FF000
ROMTbl[2][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
ROMTbl[2][1]: E0001000, CID: B105E00D, PID: 000BB002 DWT
ROMTbl[2][2]: E0002000, CID: B105E00D, PID: 000BB00E FPB-M7
ROMTbl[2][3]: E0000000, CID: B105E00D, PID: 000BB001 ITM
ROMTbl[1][1]: E0041000, CID: B105900D, PID: 001BB975 ETM-M7
ROMTbl[1][2]: E0042000, CID: B105900D, PID: 004BB906 CTI
ROMTbl[0][1]: E0040000, CID: B105900D, PID: 000BB9A9 TPIU-M7
ROMTbl[0][2]: E0043000, CID: B105F00D, PID: 001BB101 TSG
Cache: Separate I- and D-cache.
I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
Cortex-M7 identified.
J-Link>exec EnableEraseAllFlashBanks
J-Link>r
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
J-Link>erase
Erasing device (MCIMXRT1052)...

****** Error: Can not read register 15 (R15) while CPU is running

****** Error: Can not read register 7 (R7) while CPU is running

****** Error: Can not read register 6 (R6) while CPU is running

****** Error: Can not read register 5 (R5) while CPU is running

****** Error: Can not read register 4 (R4) while CPU is running

****** Error: Can not read register 3 (R3) while CPU is running

****** Error: Can not read register 2 (R2) while CPU is running

****** Error: Can not read register 1 (R1) while CPU is running

****** Error: Can not read register 0 (R0) while CPU is running

****** Error: Can not read register 15 (R15) while CPU is running

****** Error: PC of target system has unexpected value after preparing target. (PC = 0x00000000)!
---------------------------------------------------------------------- Registers -------------------------------------------------------------------------------------
PC = 00000000
Current: R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Failed to initialize RAMCode

****** Error: Can not read register 20 (CFBP) while CPU is running

****** Error: CPU is not halted
J-Link: Flash download: Total time needed: 3.028s (Prepare: 0.033s, Compare: 0.000s, Erase: 0.991s, Program: 0.000s, Verify: 0.000s, Restore: 2.003s)

****** Error: Timeout while restoring target, core does not stop. (PC = 0x20203A00, CPSR = 0x401F4470, LR = 0x61000000)!
ERROR: Erase returned with error code -5.
J-Link>

0 Kudos
0 Replies