@@ -32,10 +32,39 @@ rm -rf .mbedignore
32
32
mbed target $BOARDNAME
33
33
mbed toolchain GCC_ARM
34
34
echo -e " #include \" mbed.h\" \nint main() {}" > main.cpp
35
- echo -e " {\n\" macros\" : [\n\" MBED_HEAP_STATS_ENABLED=1\" ,\n\" MBED_STACK_STATS_ENABLED=1\" ,\n\" MBED_MEM_TRACING_ENABLED=1\" \n],\n\" target_overrides\" : {\n \" *\" : {\n\" platform.stdio-buffered-serial\" : true,\n\" rtos.main-thread-stack-size\" : 32768,\n\" platform.stdio-baud-rate\" : 115200,\n\" platform.default-serial-baud-rate\" : 115200\n}\n}\n}\n" > mbed_app.json
35
+ echo -e " {
36
+ \" macros\" : [
37
+ \" MBED_HEAP_STATS_ENABLED=1\" ,
38
+ \" MBED_STACK_STATS_ENABLED=1\" ,
39
+ \" MBED_MEM_TRACING_ENABLED=1\" ,
40
+ ],
41
+ \" target_overrides\" : {
42
+ \" *\" : {
43
+ \" platform.stdio-buffered-serial\" : true,
44
+ \" platform.stdio-baud-rate\" : 115200,
45
+ \" platform.default-serial-baud-rate\" : 115200,
46
+ }
47
+ }
48
+ }" > mbed_app.json
36
49
37
50
if [ $BOARDNAME == " ARDUINO_NANO33BLE" ]; then
38
- echo -e " {\n\" macros\" : [\n\" MBED_HEAP_STATS_ENABLED=1\" ,\n\" MBED_STACK_STATS_ENABLED=1\" ,\n\" MBED_MEM_TRACING_ENABLED=1\" \n],\n\" target_overrides\" : {\n \" *\" : {\n\" platform.stdio-buffered-serial\" : true,\n\" platform.stdio-baud-rate\" : 115200,\n\" platform.default-serial-baud-rate\" : 115200,\n\" rtos.main-thread-stack-size\" : 32768,\n\" target.mbed_app_start\" : \" 0x10000\" }\n}\n}\n" > mbed_app.json
51
+ echo -e " {
52
+ \" macros\" : [
53
+ \" MBED_HEAP_STATS_ENABLED=1\" ,
54
+ \" MBED_STACK_STATS_ENABLED=1\" ,
55
+ \" MBED_MEM_TRACING_ENABLED=1\" ,
56
+ \" NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS=8\"
57
+ ],
58
+ \" target_overrides\" : {
59
+ \" *\" : {
60
+ \" platform.stdio-buffered-serial\" : true,
61
+ \" platform.stdio-baud-rate\" : 115200,
62
+ \" platform.default-serial-baud-rate\" : 115200,
63
+ \" rtos.main-thread-stack-size\" : 32768,
64
+ \" target.mbed_app_start\" : \" 0x10000\"
65
+ }
66
+ }
67
+ }" > mbed_app.json
39
68
fi
40
69
41
70
if [ -d $ARDUINOCORE /conf ]; then
0 commit comments