Hi,
I have a SAMD51 custom board and the Atmel SAME54 XPLAINED board which is Rev 0 (Engineering Sample).
Similar issue to this abandoned thread: [ABANDONED] J-Link ATSAME54 can't halt CPU
However I can confirm it is not just Atmel Studio but JLink Commander is 100% unable to operate on these micros.
I have tried JLink commander from 6.32c and 6.22c with no difference in error.
Display All
The EDBG from Atmel has no issue with the SAME54, just the JLink. And this is just using Commander so its not Studio
Both chips are revision A.
Edit:
According to this Microchip support response:
Is there a fix somewhere from SEGGER?
I have a SAMD51 custom board and the Atmel SAME54 XPLAINED board which is Rev 0 (Engineering Sample).
Similar issue to this abandoned thread: [ABANDONED] J-Link ATSAME54 can't halt CPU
However I can confirm it is not just Atmel Studio but JLink Commander is 100% unable to operate on these micros.
I have tried JLink commander from 6.32c and 6.22c with no difference in error.
Source Code
- SEGGER J-Link Commander V6.32c (Compiled May 11 2018 16:30:45)
- DLL version V6.32c, compiled May 11 2018 16:30:26
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link V9 compiled Apr 20 2018 16:47:26
- Hardware version: V9.40
- S/N: 29423994
- License(s): RDI, GDB
- OEM: SAM-ICE
- VTref=3.320V
- Type "connect" to establish a target connection, '?' for help
- J-Link>connect
- Please specify device / core. <Default>: ATSAMD51J18
- 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>Auto
- Device "ATSAMD51J18" selected.
- Connecting to target via SWD
- Found SW-DP with ID 0x2BA01477
- Scanning AP map to find all available APs
- AP[2]: Stopped AP scan as end of AP map has been 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
- ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB4C4 ROM Table
- ROMTbl[1] @ E00FF000
- ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
- ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
- ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
- ROMTbl[1][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
- ROMTbl[1][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
- ROMTbl[1][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
- ROMTbl[1][6]: E0042000, CID: B105900D, PID: 003BB907 ETB
- Cortex-M4 identified.
- J-Link>h
- **************************
- WARNING: CPU could not be halted
- **************************
- J-Link>erase
- **************************
- WARNING: CPU could not be halted
- **************************
- Erasing device (ATSAMD51J18)...
- **************************
- WARNING: CPU could not be halted
- **************************
- ****** Error: Can not read register 16 (XPSR) while CPU is running
- Can not read register 20 (CFBP) while CPU is running
- Can not read register 0 (R0) while CPU is running
- Can not read register 1 (R1) while CPU is running
- Can not read register 2 (R2) while CPU is running
- Can not read register 3 (R3) while CPU is running
- Can not read register 4 (R4) while CPU is running
- Can not read register 5 (R5) while CPU is running
- Can not read register 6 (R6) while CPU is running
- Can not read register 7 (R7) while CPU is running
- Can not read register 8 (R8) while CPU is running
- Can not read register 9 (R9) while CPU is running
- Can not read register 10 (R10) while CPU is running
- Can not read register 11 (R11) while CPU is running
- Can not read register 12 (R12) while CPU is running
- Can not read register 14 (R14) while CPU is running
- Can not read register 15 (R15) while CPU is running
- Can not read register 17 (MSP) while CPU is running
- Can not read register 18 (PSP) while CPU is running
- ****** Error: Can not read register 20 (CFBP) while CPU is running
- ****** Error: CPU is not halted
- **************************
- WARNING: CPU could not be halted
- **************************
- ****** Error: Can not read register 15 (R15) while CPU is running
- ****** Error: Can not read register 16 (XPSR) while CPU is running
- ****** Error: Can not read register 13 (R13) while CPU is running
- ****** Error: Timeout while checking target RAM, core does not stop. (PC = 0x00000000, XPSR = 0x00000000, SP = 0x00000000)!
- Failed to prepare for programming.
- Failed to execute RAMCode for RAM check!
- ERROR: Erase returned with error code -1.
- J-Link>
- Unknown command. '?' for help.
- J-Link>
- Unknown command. '?' for help.
- J-Link>regs
- CPU is not halted !
- J-Link>
The EDBG from Atmel has no issue with the SAME54, just the JLink. And this is just using Commander so its not Studio
Both chips are revision A.
Edit:
According to this Microchip support response:
This issue will be fixed in the upcoming releases of Studio with updates from SEGGER.
Is there a fix somewhere from SEGGER?
The post was edited 2 times, last by mroszko ().