Allow Mbed CE to be built as an Arduino core #206
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes
This PR works together with the new https://github.com/mbed-ce/ArduinoCore-mbed-ce repository. Using this PR plus that repo, one can compile an Arduino IDE compatible core for Mbed CE! All you gotta do is drop the core folder in the $HOME/Documents/Arduino/hardware/mbed-ce folder, and bam! The Arduino IDE can then compile for supported boards (currently Nano 33 BLE and RPi Pico) using Mbed CE as a backend.
Many of the patches needed for these targets already existed in Mbed from earlier efforts to keep the Arduino targets in sync, but some more still had to be added. I tried to not go completely bonkers adding changes, and just go for the minimum needed to make it compile and work.
Changes include:
mbedtls.entropy-nv-seed
which allows MBEDTLS_ENTROPY_NV_SEED to be enabled usingtarget_overrides
(instead of being forced to enable it globally usingmacros
)-include mbed-target-config.h
flag set up, which is convenient.Impact of changes
mbedtls.entropy-nv-seed
option which enables the MBEDTLS_ENTROPY_NV_SEED defineMigration actions required
Documentation
See ArduinoCore-mbed-ce repo.
Pull request type
Test results
I've build and run several examples, and they work!
Reviewers