platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
82 stars 108 forks source link

Add support for uploading to Sparkfun SAMD51 boards with newer bossac tool #145

Closed smarpug closed 3 years ago

smarpug commented 3 years ago

Resolving #144. Older bossac tool does not upload properly to SAMD51 boards. The Sparkfun boards had not been properly added to the python scripts for uploading with the newer tool (v1.9+). The newer tool has the --offset parameter to designate the proper offset location for the flash write (to avoid overwriting the 16kb bootloader). This change allows me to be able to upload to the Sparkfun Thing Plus SAMD51 board. I am not able to test it with other Sparkfun boards for compatibility.

smarpug commented 3 years ago

I think I may have looped in more commits with this pull request than I intended. Possibly I put this latest commit (50f60b5) on the wrong branch in my local repo. I'm happy to resubmit this if needed.

valeros commented 3 years ago

Many thanks!