-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Describe the bug
When using bossac to flash the adafruit_trinket_m0, it defaults to the 0x0000 address. This is wrong due to the UF2 bootloader. See https://learn.adafruit.com/adafruit-trinket-m0-circuitpython-arduino/uf2-bootloader-details#running-bossac-on-the-command-line-46-29.
Also, due to #13151 (code,partition not taking effect unless BOOTALODER_MCUBOOT is set), simply fixing the bossac offset isn't enough. The physical location of where the application is flashed must change.
Note that adafruit ships these locked now: https://forums.adafruit.com/viewtopic.php?f=57&t=142170&p=707151#p707153
To Reproduce
Steps to reproduce the behavior:
- mkdir build; cd build
- cmake -DBOARD=adafruit_trinket_m0
- make
- make flash
- see error
Expected behavior
For bossac to flash to the correct address for this board.
Impact
Showstopper as no one can flash this board with make flash