I've been using M0 Adaloggers for a while now, successfully programming them via bossac or openocd + arm-gdb (developing in rust, so no Arduino environment). However, the most recent one I've purchased comes with the new UF2 bootloader and doesn't appear to be supported by bossac 1.9.1. I can connect to it via openocd (FT232H board) and query the flash information, but arm-gdb fails to flash the chip with error "Error erasing flash with vFlashErase packet". I have another M0, probably 2 years old, where the same openocd flash procedure works without complaint.
Does this have anything to do with the new bootloader, or is there something else going on with the board?
- Jw
$ bossac -p /dev/ttyACM0 -d -i
Set binary mode
version()=V#
Connected at 921600 baud
readWord(addr=0)=0x30303077
readWord(addr=0xe000ed00)=0x30303030
readWord(addr=0x400e0740)=0x23342c30
readWord(addr=0x400e0744)=0x30304577
Device unsupported
$ bossac -V
Basic Open Source SAM-BA Application (BOSSA) Version 1.9.1-8-g8202074
Flash programmer for Atmel SAM devices.
Copyright (c) 2011-2018 ShumaTech (
http://www.shumatech.com)