nigelb / platform-apollo3blue

AmbiqMicro Apollo 3 Blue: development platform for PlatformIO
Apache License 2.0
29 stars 12 forks source link

"Arduino" vs "RTOS" upstream as 2 board "flavors"? #9

Closed jerabaul29 closed 3 years ago

jerabaul29 commented 3 years ago

So if I understand well, there are 2 "main versions" of the upstream sparkfun tool: one (v1.x.x) that is a "pure Arduino core", and one (v2.x.x) that is actually on top of mbed-os RTOS, right? Do you think it would be possible ultimately to get the possibility to choose between these 2 kinds of flavors? :) .

nigelb commented 3 years ago

Hi @jerabaul29 I have updated everything so that now one can specify which version of the (installed) framework to use:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:SparkFun_Artemis_Nano]
platform = apollo3blue
board = SparkFun_Artemis_Nano
framework = arduino
platform_packages = framework-arduinoapollo3@2.1.0
jerabaul29 commented 3 years ago

(I see this is named in the readme but not showed explicitly; do you think you could update the Readme to show how to 1) install the two cores side by side, 2) switch between one and the other? :) ).

nigelb commented 3 years ago

Ok have a look here for a detailed example.