forked from arduino/ArduinoCore-mbed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add README, remove some no longer needed scripts, add missing file
- Loading branch information
1 parent
25cb382
commit ab3a6e9
Showing
9 changed files
with
4,662 additions
and
1,015 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
# Arduino Core for Mbed CE Arduino devices | ||
This repository is a work-in-progress attempt to bundle Mbed CE as an Arduino core, so that Mbed CE can be used as a platform in the Arduino IDE. It is designed to perform a similar function as the mainline [ArduinoCore-mbed](https://github.com/arduino/ArduinoCore-mbed) repository while being significantly less janky. | ||
This repository is a wrapper which bundles Mbed CE as an Arduino core so that Mbed CE can be used as a platform in the Arduino IDE. It is designed to perform a similar function as the mainline [ArduinoCore-mbed](https://github.com/arduino/ArduinoCore-mbed) repository while being a bit less janky. | ||
|
||
The build scripts in this repo perform two distinct functions: | ||
The CMake build scripts in this repo perform two distinct functions: | ||
- Create a precompiled build of Mbed OS, and then install it plus the supporting files in the correct directory structure to be an Arduino core | ||
- Compile the Arduino core library and dependency libraries in-place. This is purely done to check that they compile, and is not intended for actual usage (though theoretically you could use this repo to compile and link Mbed CE Arduino applications). | ||
- Compile the Arduino core library and dependency libraries in-place. This is mainly done to check that they compile, and is not intended for actual usage (though you can use this repo to compile and link Mbed CE Arduino applications). | ||
|
||
## Compiling an Arduino core for Mbed CE | ||
|
||
1. Set up the toolchain as [described](https://github.com/mbed-ce/mbed-os/wiki/Toolchain-Setup-Guide) in the Mbed CE wiki. | ||
2. Install Python dependencies. On Ubuntu >=22.04, run `xargs apt-get install -y < mbed-os/tools/requirements.apt.txt`. On other OSs, run `python3 -m pip install -r mbed-os/tools/requirements.txt`. | ||
3. Create a build directory and cd into it: `mkdir build && cd build` | ||
4. Configure CMake: `cmake .. -GNinja -DCMAKE_BUILD_TYPE=<Debug|Release> -DMBED_TARGET=<target> -DUPLOAD_METHOD=NONE`. The DCMAKE_BUILD_TYPE may be set to Debug or Release to generate a debug or release build of the core. The MBED_TARGET may be set to any supported target for this repo -- check the directory names under `variants/` to see each supported target. | ||
5. Build: `ninja` | ||
6. Generate the package: `ninja package`. This will generate a zip file containing the core in the build folder -- for example, mine is called `ArduinoCore-mbed-ce-RASPBERRY_PI_PICO-Develop-1.0.0.zip`. | ||
|
||
## Installing the Core Locally | ||
|
||
THe easiest way to install the core locally, per [here](https://support.arduino.cc/hc/en-us/articles/360021232160-How-to-install-and-use-a-custom-core-version-in-the-IDE), is to copy it to your sketchbook directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.