Skip to content

Commit 6035783

Browse files
committed
Add info on mbed_app.json
1 parent 1e05037 commit 6035783

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ mkdir -p variants/$BRAND_NEW_BOARD_NAME/{libs,conf}
102102
./mbed-os-to-arduino -r /path/to/mbed-os/fork/that/supports/new/board $BRAND_NEW_BOARD_NAME:$BRAND_NEW_BOARD_NAME
103103
```
104104

105+
### Customizing Mbed OS build without modifying the code
106+
107+
Most Mbed OS defines can be tuned using a project file called `mbed_app.json` . In case you need to tune a build you can add that file to your variant's `conf` folder. One example is https://github.com/arduino/ArduinoCore-mbed/blob/master/variants/PORTENTA_H7_M7/conf/mbed_app.json .
108+
Providing an invalid json or replacing a non-existing property will make the build fail silently, so it's always better to validate that file with a standard Mbed OS project.
109+
110+
105111
## Using this core as an mbed library
106112

107113
You can use this core as a standard mbed library; all APIs are under `arduino` namespace (so they must be called like `arduino::digitalWrite()` )

0 commit comments

Comments
 (0)