Using the Jlink tools v 6.52 under MacOS, I'm scratching my head how to unlock a Microchip/Atmel ATSAMD21J18A...
The "unlock" command isn't right, as it only supports other chips. I tried just "erase", and that also doesn't work. What am I missing here? (I bet it's obvious).
The wiki ( wiki.segger.com/ATSAM_Device_Series ) implies that it should auto-unlock, but that's definitely not what I see.
Here's what I see when I try:
Display All
The "unlock" command isn't right, as it only supports other chips. I tried just "erase", and that also doesn't work. What am I missing here? (I bet it's obvious).
The wiki ( wiki.segger.com/ATSAM_Device_Series ) implies that it should auto-unlock, but that's definitely not what I see.
Here's what I see when I try:
Source Code
- JLinkExe -device ATSAMD21J18 -if swd -speed 4000
- SEGGER J-Link Commander V6.52e (Compiled Oct 16 2019 12:33:23)
- DLL version V6.52e, compiled Oct 16 2019 12:33:11
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link Pro V4 compiled Oct 8 2019 14:58:45
- Hardware version: V4.00
- S/N: 17450XXXXX
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- IP-Addr: DHCP (no addr. received yet)
- VTref=3.303V
- Type "connect" to establish a target connection, '?' for help
- J-Link>connect
- Device "ATSAMD21J18" selected.
- Connecting to target via SWD
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- ****** Error: InitTarget(): PCode returned with error code -1
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- ****** Error: InitTarget(): PCode returned with error code -1
- Cannot connect to target.
- J-Link>erase
- Target connection not established yet but required for command.
- Device "ATSAMD21J18" selected.
- Connecting to target via SWD
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- ****** Error: InitTarget(): PCode returned with error code -1
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- InitTarget()
- Connect Under Reset
- Connect Under Reset
- ****** Error: InitTarget(): PCode returned with error code -1
- Cannot connect to target.
- J-Link>