Hi,
I’m trying to use the CW308T-ATSAML11 target (for setup details, see below, though I don’t think they’re super relevant). As it cannot be flashed by the ChipWhisperer directly, I have to use another tool. The datasheet PDF mentions having to use “an external programmer (such as Atmel ICE or OpenOCD)”. However, when I try to use OpenOCD, I get the following error log (the same error appears on v0.11.0, v0.12.0, and the current latest commit, 1173473f6
):
Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64 (2024-10-03-18:26)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
Info : FTDI SWD mode enabled
swd
Warn : Transport "swd" was already selected
cortex_m reset_config sysresetreq
Info : clock speed 500 kHz
Info : SWD DPIDR 0x0bf11477
Info : SWD DPIDR 0x0bf11477
Error: Failed to read memory at 0xe000ed00
Warn : target saml1x.cpu examination failed
Info : starting gdb server for saml1x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Error: Target not examined yet
This is slightly weird, as OpenOCD has tcl scripts for the SAML11 (tcl/target/atsaml1x.cfg
) which would indicate some level of support. Similarly, the 0.11.0 changelog entry lists added support for a SAML11 devboard. Has anyone tested using OpenOCD to program the ATSAML11 before? Is there a commit that does work? Or should I get myself an Atmel-ICE instead?
Setup details: I’m using a Husky and CW313 board, and have connected the CW308T-ATSAML11 by using one of those CW313-CW308 adapter boards. I have added two jumpers to JP3 to connect TMS/SWDIO and TCK/SWCLK with PDID and SCK, respectively (and use --no-user-io
/enable_MPSSE(1)
) so the SWD connection goes over the standard 20-pin ChipWhisperer connector. I’m using the ./openocd/run_openocd.sh -p $FILE_TO_PROG --no-user-io husky swd -- -f target/atsaml1x.cfg
command to call OpenOCD.