From 062c71befc36a51ef9cc9f935e17a716eced0d75 Mon Sep 17 00:00:00 2001 From: Michael Schloh von Bennewitz Date: Sat, 9 Jan 2021 11:25:55 +0100 Subject: [PATCH] Add a openocd(1) configuration, to enable user firmware programming. --- firmware/Sendcomm-OCD.cfg | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 firmware/Sendcomm-OCD.cfg diff --git a/firmware/Sendcomm-OCD.cfg b/firmware/Sendcomm-OCD.cfg new file mode 100644 index 0000000..1c9364a --- /dev/null +++ b/firmware/Sendcomm-OCD.cfg @@ -0,0 +1,36 @@ +# +# SendComm EDU (SAMR34 Cortex-M0 ISA) developer kit OpenOCD configuration +# +# Note: Build openocd(1) from its source repository to benefit from the most +# recent SAMR34 definitions, because the chip in use is relatively new. +# +# Use with a firmware binary (bin) or archive (elf) in the following way: +# +# $ openocd-git/src/openocd -s openocd-git/tcl \ +# -f dscomm-0.9.2/document/sendcomm-ocd.cfg \ +# -c 'program SendcommLWOTAA-rel.elf verify reset exit' +# +# ...and after that, Sendcomm firmware is running. +# To use it, first log into the Sendcomm host and: +# +# $ screen /dev/serial0 115200 8N1 +# + +# Modify to the debugger in use +#adapter driver cmsis-dap +adapter driver jlink +#jlink serial 123456789 + +# choose swd (not jtag) +transport select swd + +# chip name +#set CHIPNAME at91samr21g18 +set CHIPNAME atsamr34j17 + +# use defaults of Atmel SAM devices +source [find target/at91samdXX.cfg] + +# optimise the datarate +#adapter speed 5000 +adapter speed 800