Open obdevel opened 5 years ago
An update on progress, such as it is. I can now run sketches by exporting the compiled binary and programming externally using OpenOCD 0.10.0. Serial1-3, Wire and CAN work as expected.
Here's a screen grab of my config:
My openocd.cfg : (cobbled together from various sources)
source [find interface/jlink.cfg]
transport select swd
set CHIPNAME at91samc21g18
source [find target/at91samdXX.cfg]
reset_config srst_nogate
adapter_nsrst_delay 100
adapter_nsrst_assert_width 100
init
targets
reset halt
at91samd bootloader 0
program ATSAMC21_CAN_v1.ino.Xeno_Mini.bin verify
reset
shutdown
I have an own-design board based on the ATSAMC21G18A Xeno mini but with CAN bus and other devices. I have a J-link programmer and can successfully compile, run and debug using AS7.
I have also programmed the sam_ba_Generic_x21G_SAMC21G18A.bin bootloader onto the board using this environment.
Using Arduino (1.8.8 on macOS) I can compile sketches but I can't upload to the board using a USB/serial adaptor on the RX1 and TX1 pins. Error is:
I'm using the latest board version 1.6.18-beta-b1.
I've tried exporting the compiled binary (.bin) for a simple blink sketch and programming it using AS7; this appears to work but there is no output (LEDs, serial, etc) so I doubt that it is running.
What do you suggest I try next ?
fwiw, another board, based on ATSAMD11D14A, works just fine with this core and bootloader.
Thanks.