[ABANDONED] J-Link Commander Erasing SAME54: RAMCode never stops

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ABANDONED] J-Link Commander Erasing SAME54: RAMCode never stops

    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:

    Source Code

    1. ****** Error: Timeout while restoring target, RAMCode did not respond in time (PC = 0xFFFFFFFE, XPSR = 0x01000003, SP = 0xFFFFFFD8)!
    2. Failed to restore target. RAMCode never stops
    3. ERROR: Erase returned with error code -5.

    (That is a suspicious looking PC!) Any suggestions on how to get over this bump would be appreciated!

    Full transcript follows:

    Source Code

    1. SEGGER J-Link Commander V7.82b (Compiled Nov 9 2022 17:08:19)
    2. DLL version V7.82b, compiled Nov 9 2022 17:06:50
    3. Connecting to J-Link via USB...O.K.
    4. Firmware: J-Link V11 compiled Nov 9 2022 14:34:45
    5. Hardware version: V11.00
    6. J-Link uptime (since boot): 0d 23h 48m 06s
    7. S/N: 51028480
    8. License(s): GDB
    9. USB speed mode: High speed (480 MBit/s)
    10. VTref=3.328V
    11. Type "connect" to establish a target connection, '?' for help
    12. J-Link>con
    13. Please specify device / core. <Default>: ATSAME54P20A
    14. Type '?' for selection dialog
    15. Device>
    16. Please specify target interface:
    17. J) JTAG (Default)
    18. S) SWD
    19. T) cJTAG
    20. TIF>s
    21. Specify target interface speed [kHz]. <Default>: 4000 kHz
    22. Speed>
    23. Device "ATSAME54P20A" selected.
    24. Connecting to target via SWD
    25. InitTarget() start
    26. InitTarget()
    27. Reset released!
    28. InitTarget() end
    29. InitTarget() end
    30. Found SW-DP with ID 0x2BA01477
    31. DPIDR: 0x2BA01477
    32. CoreSight SoC-400 or earlier
    33. Scanning AP map to find all available APs
    34. AP[2]: Stopped AP scan as end of AP map seems to be reached
    35. AP[0]: AHB-AP (IDR: 0x24770011)
    36. AP[1]: AHB-AP (IDR: 0x74770001)
    37. Iterating through AP map to find AHB-AP to use
    38. AP[0]: Core found
    39. AP[0]: AHB-AP ROM base: 0x41003000
    40. CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
    41. Found Cortex-M4 r0p1, Little endian.
    42. FPUnit: 6 code (BP) slots and 2 literal slots
    43. CoreSight components:
    44. ROMTbl[0] @ 41003000
    45. [0][0]: E00FF000 CID B105100D PID 000BB4C4 ROM Table
    46. ROMTbl[1] @ E00FF000
    47. [1][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
    48. [1][1]: E0001000 CID B105E00D PID 003BB002 DWT
    49. [1][2]: E0002000 CID B105E00D PID 002BB003 FPB
    50. [1][3]: E0000000 CID B105E00D PID 003BB001 ITM
    51. [1][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
    52. [1][5]: E0041000 CID B105900D PID 000BB925 ETM
    53. [1][6]: E0042000 CID B105900D PID 003BB907 ETB
    54. Cortex-M4 identified.
    55. J-Link>erase
    56. No address range specified, 'Erase Chip' will be executed
    57. 'erase': Performing implicit reset & halt of MCU.
    58. Reset: Halt core after reset via DEMCR.VC_CORERESET.
    59. Reset: Reset device via AIRCR.SYSRESETREQ.
    60. Erasing device...
    61. ****** Error: Failed to erase sectors.
    62. 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)
    63. ****** Error: Timeout while restoring target, RAMCode did not respond in time (PC = 0xFFFFFFFE, XPSR = 0x01000003, SP = 0xFFFFFFD8)!
    64. Failed to restore target. RAMCode never stops
    65. ERROR: Erase returned with error code -5.
    66. J-Link>
    Display All