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

CMSIS build #80

Open frankleonrose opened 4 years ago

frankleonrose commented 4 years ago

In addition to #33, I'd like to build my Atmelsam board using framework = cmsis. Where can I find the repo for that?

Automated packaging steps:

  1. Download Atmelsam packs from http://packs.download.atmel.com/
  2. Copy linker scripts from packs to framework-cmsis/platformio/ldscripts/atmelsam
  3. Copy headers from packs to framework-cmsis/variants/atmelsam/\<samfamily>/\<suffix>/include
  4. Copy startup\<samfamily>.c and system\<samfamily>.c to framework-cmsis/variants/atmelsam/\<samfamily>/\<suffix>/source

Presumably you do something similar for the STSTM32 files that are currently included in framework-cmsis.

And then of course add a cmsis.py to the builders directory here and update any board files that now support the framework.

frankleonrose commented 4 years ago

I created https://github.com/frankleonrose/framework-cmsis from scratch and started my work there. @valeros, where is the actual repo I should fork from?

valeros commented 4 years ago

Hi @frankleonrose ! Sorry for the late reply.

Where is the actual repo I should fork from?

At the moment there is no repository for this package, so your https://github.com/frankleonrose/framework-cmsis is totally fine you just need to specify the url to this repository it in version field in platform.json file. Later when you finish the build script, we'll add it to our packages.

RudolphRiedel commented 4 years ago

As this is exactly what I was looking for, what is the reason that the Pull-Request has not been applied in early november after the cleanup of the STM32 leftovers had been done?

maxgerhardt commented 2 years ago

This was asked again in https://community.platformio.org/t/bare-metal-on-arduino-due-atmelsam/22824