I may have bricked my ATSAME54P20A: I was on the way to enabling the watchdog timer, which requires setting the NVM fuses. But when it failed to run, I decided to erase the chip with J-Link Base / J-Link Commander and start over.
However, the "erase" command times out with the message:
(That is a suspicious looking PC!) Any suggestions on how to get over this bump would be appreciated!
Full transcript follows:
Display All
However, the "erase" command times out with the message:
(That is a suspicious looking PC!) Any suggestions on how to get over this bump would be appreciated!
Full transcript follows:
Source Code
- SEGGER J-Link Commander V7.82b (Compiled Nov 9 2022 17:08:19)
- DLL version V7.82b, compiled Nov 9 2022 17:06:50
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link V11 compiled Nov 9 2022 14:34:45
- Hardware version: V11.00
- J-Link uptime (since boot): 0d 23h 48m 06s
- S/N: 51028480
- License(s): GDB
- USB speed mode: High speed (480 MBit/s)
- VTref=3.328V
- Type "connect" to establish a target connection, '?' for help
- J-Link>con
- Please specify device / core. <Default>: ATSAME54P20A
- Type '?' for selection dialog
- Device>
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- T) cJTAG
- TIF>s
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>
- Device "ATSAME54P20A" selected.
- Connecting to target via SWD
- InitTarget() start
- InitTarget()
- Reset released!
- InitTarget() end
- InitTarget() end
- Found SW-DP with ID 0x2BA01477
- DPIDR: 0x2BA01477
- CoreSight SoC-400 or earlier
- Scanning AP map to find all available APs
- AP[2]: Stopped AP scan as end of AP map seems to be reached
- AP[0]: AHB-AP (IDR: 0x24770011)
- AP[1]: AHB-AP (IDR: 0x74770001)
- Iterating through AP map to find AHB-AP to use
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0x41003000
- CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
- Found Cortex-M4 r0p1, Little endian.
- FPUnit: 6 code (BP) slots and 2 literal slots
- CoreSight components:
- ROMTbl[0] @ 41003000
- [0][0]: E00FF000 CID B105100D PID 000BB4C4 ROM Table
- ROMTbl[1] @ E00FF000
- [1][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
- [1][1]: E0001000 CID B105E00D PID 003BB002 DWT
- [1][2]: E0002000 CID B105E00D PID 002BB003 FPB
- [1][3]: E0000000 CID B105E00D PID 003BB001 ITM
- [1][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
- [1][5]: E0041000 CID B105900D PID 000BB925 ETM
- [1][6]: E0042000 CID B105900D PID 003BB907 ETB
- Cortex-M4 identified.
- J-Link>erase
- No address range specified, 'Erase Chip' will be executed
- 'erase': Performing implicit reset & halt of MCU.
- Reset: Halt core after reset via DEMCR.VC_CORERESET.
- Reset: Reset device via AIRCR.SYSRESETREQ.
- Erasing device...
- ****** Error: Failed to erase sectors.
- J-Link: Flash download: Total time needed: 7.102s (Prepare: 0.117s, Compare: 0.000s, Erase: 3.981s, Program: 0.000s, Verify: 0.000s, Restore: 3.003s)
- ****** Error: Timeout while restoring target, RAMCode did not respond in time (PC = 0xFFFFFFFE, XPSR = 0x01000003, SP = 0xFFFFFFD8)!
- Failed to restore target. RAMCode never stops
- ERROR: Erase returned with error code -5.
- J-Link>