Skip to content

Adafruit Trinket M0 Bossac Offset is Wrong #16052

@psidhu

Description

@psidhu

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:

  1. mkdir build; cd build
  2. cmake -DBOARD=adafruit_trinket_m0
  3. make
  4. make flash
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug, or the PR is fixing a bug

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions