Skip to content

Commit a93ca0e

Browse files
committed
Add mbed_app.json override to instructions
1 parent 3514b44 commit a93ca0e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mbed-os-to-arduino

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ cd mbed-os-program
66
mbed target $BOARDNAME
77
mbed toolchain GCC_ARM
88
echo -e "#include \"mbed.h\"\nint main() {Thread thd;}" > main.cpp
9+
echo -e "{\n \"target_overrides\": {\n \"*\": {\n \"platform.stdio-buffered-serial\": true,\n \"platform.stdio-baud-rate\": 115200,\n \"platform.default-serial-baud-rate\": 115200\n }\n }\n}\n" > mbed_app.json
10+
911
mbed compile -v | grep "Macros:" > $BOARDNAME.macros.txt
1012
cat $BOARDNAME.macros.txt | cut -f2 -d":" > $ARDUINOCORE/defines.txt
1113
xargs -n 1 < ./BUILD/$BOARDNAME/GCC_ARM/.include* | sed -e 's#./mbed-os#{build.core.path}/mbed#g' | sed -e 's#-I/.*$##' | tac > $ARDUINOCORE/includes.txt

0 commit comments

Comments
 (0)