platformio / platform-atmelsam

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

How to use platform-atmelsam with framework-cmsis-atmel? #103

Closed RudolphRiedel closed 4 years ago

RudolphRiedel commented 4 years ago

I am trying to use atmelsam but all boards are using one of the Arduino or Arduino-like frameworks. Only samc21_xpro is an exception but only in that it has no frameworks defined - how is this supposed to work?

I can add a custom board file to my project/board and add all the includes manually to project/include. This kind of works but not only does it defeat the purpose of PlatformIO a bit, I am pretty sure it does not even work since I still have no startup-code and at least the stack is not set up.

But as soon as I add "framework = cmsis-atmel" to my platformio.ini, platformio bombs out:

valeros commented 4 years ago

Closing as duplicate of #80

There is no support for CMSIS framework at the moment. The empty framework field means that user is responsible for bootstrapping a working firmware (including startup routine, linker scripts, etc).