Skip to content

Commit a7285e7

Browse files
committed
Tune target UNISENSE to avoid stack overflows
1 parent 45e8703 commit a7285e7

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

variants/UNISENSE/conf/mbed_app.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,33 @@
77
],
88
"target_overrides": {
99
"*": {
10-
"target.printf_lib": "small",
10+
"target.printf_lib": "minimal-printf",
1111
"platform.stdio-buffered-serial": true,
1212
"platform.stdio-baud-rate": 115200,
1313
"platform.default-serial-baud-rate": 115200,
1414
"platform.callback-nontrivial": true,
15-
"rtos.main-thread-stack-size": 1024,
15+
"rtos.main-thread-stack-size": 3072,
1616
"rtos.thread-stack-size": 1024,
1717
"rtos.idle-thread-stack-size": 512,
1818
"target.mbed_app_start": "0x10000",
1919
"target.components_add" : ["SPIF"],
20-
"cordio.max-connections": 2,
20+
"cordio.max-connections": 1,
2121
"ble.ble-role-central": false,
2222
"ble.ble-role-observer": false,
23-
"ble.ble-security-database-max-entries": 3,
24-
"ble.ble-gap-max-advertising-sets": 5,
25-
"ble.ble-gap-host-privacy-resolved-cache-size": 8
23+
"ble.ble-gap-max-advertising-sets": 1,
24+
"ble.ble-gap-host-privacy-resolved-cache-size": 1,
25+
"ble.ble-feature-gatt-client": false,
26+
"ble.ble-feature-security": false,
27+
"ble.ble-feature-secure-connections": false,
28+
"ble.ble-feature-signing": false,
29+
"ble.ble-feature-whitelist": false,
30+
"ble.ble-feature-privacy": false,
31+
"ble.ble-feature-extended-advertising": false,
32+
"ble.ble-feature-periodic-advertising": false,
33+
"ble.ble-security-database-filesystem": false,
34+
"ble.ble-security-database-kvstore": false,
35+
"ble.ble-gap-host-based-private-address-resolution": false,
36+
"ble.ble-gap-max-advertising-reports-pending-address-resolution": false
2637
}
2738
}
2839
}

0 commit comments

Comments
 (0)