I'm experiencing this on a ATSAMV71Q21B. I've erased the chip completely using different methods and tried the following commands:
The last part fails with error -1, failed while determining flash info, claiming it failed to prepare RAMCode.
Full log:
Display All
I've used 7.00a and 7.22a.
Display All
The last part fails with error -1, failed while determining flash info, claiming it failed to prepare RAMCode.
Full log:
Source Code
- Target connection not established yet but required for command.
- Please specify device / core. <Default>: ATSAMV71Q21
- Type '?' for selection dialog
- Device>connect
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- F) FINE
- I) ICSP
- C) C2
- T) cJTAG
- TIF>s
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>auto
- Device "ATSAMV71Q21" selected.
- Connecting to target via SWD
- Found SW-DP with ID 0x0BD11477
- DPIDR: 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[0][1]: E0040000, CID: B105900D, PID: 000BB9A9 TPIU-M7
- Cache: Separate I- and D-cache.
- I-Cache L1: 16 KiB, 256 Sets, 32 Bytes/Line, 2-Way
- D-Cache L1: 16 KiB, 128 Sets, 32 Bytes/Line, 4-Way
- Cortex-M7 identified.
- PC = FFFFFFFE, CycleCnt = B5F633CE
- R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
- R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
- R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
- R12= 00000000
- SP(R13)= FFFFFFD8, MSP= FFFFFFD8, PSP= 00000000, R14(LR) = FFFFFFF9
- XPSR = 01000003: APSR = nzcvq, EPSR = 01000000, IPSR = 003 (HardFault)
- CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
- FPS0 = 00000000, FPS1 = 00000000, FPS2 = 00000000, FPS3 = 00000000
- FPS4 = 00000000, FPS5 = 00000000, FPS6 = 00000000, FPS7 = 00000000
- FPS8 = 00000000, FPS9 = 00000000, FPS10= 00000000, FPS11= 00000000
- FPS12= 00000000, FPS13= 00000000, FPS14= 00000000, FPS15= FFFFFFFF
- FPS16= 00000000, FPS17= 00000000, FPS18= 00000000, FPS19= 00000000
- FPS20= 00000000, FPS21= 00000000, FPS22= 00000000, FPS23= 00000000
- FPS24= 00000000, FPS25= 00000000, FPS26= 00000000, FPS27= 00000000
- FPS28= 00000000, FPS29= 00000000, FPS30= 00000000, FPS31= FFFFFFFF
- FPSCR= 00000000
- J-Link>rx 300
- Reset delay: 300 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
- Without any give address range, Erase Chip will be executed
- Erasing device...
- J-Link: Flash download: Total time needed: 7.744s (Prepare: 0.038s, Compare: 0.000s, Erase: 7.700s, Program: 0.000s, Verify: 0.000s, Restore: 0.005s)
- ****** Error: Failed to prepare RAMCode using RAM
- Error while determining flash info (Bank @ 0x80000000)
- ERROR: Erase returned with error code -1.
- J-Link>
I've used 7.00a and 7.22a.
Source Code
- SEGGER J-Link Commander V7.22a (Compiled Jun 9 2021 16:38:16)
- DLL version V7.22a, compiled Jun 9 2021 16:38:00
- Connecting to J-Link via USB...O.K.
- Firmware: J-Trace PRO V1 Cortex-M compiled Feb 2 2021 16:38:18
- Hardware version: V1.00
- S/N: 751000526
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- IP-Addr: 192.168.0.6
- Emulator has RAWTRACE capability
- VTref=3.219V
- Type "connect" to establish a target connection, '?' for help
- J-Link>
The post was edited 1 time, last by emrainey: fixing code/logs ().