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

Code built for Feather M0 does not run #19

Closed frankleonrose closed 7 years ago

frankleonrose commented 7 years ago

PlatformIO 3.5.0a4 built Blinky sample fails on Feather M0. Same code built with Arduino IDE 1.8.1 runs fine.

PlatformIO env settings are:

platform = atmelsam
board = adafruit_feather_m0
framework = arduino

The code uploads but crashes. (Indication of crash is standard for Feather - the USB port disappears. And of course the LED does not blink.)

frankleonrose commented 7 years ago

Doh! My bad. I had edited flash_with_bootloader.ld while working on getting BlackMagic debugger running with Feather. When I restored it to the original (Flash origin +0x2000), of course everything worked smoothly, as I have come to expect from PlatformIO.