|
@@ -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 |