Skip to content

Commit 76de8c3

Browse files
committed
Disable not needed ble features to avoid stack overflows
1 parent ae66a4c commit 76de8c3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

variants/UNISENSE/conf/mbed_app.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@
1212
"platform.stdio-baud-rate": 115200,
1313
"platform.default-serial-baud-rate": 115200,
1414
"platform.callback-nontrivial": true,
15-
"rtos.main-thread-stack-size": 2048,
15+
"rtos.main-thread-stack-size": 1024,
1616
"rtos.thread-stack-size": 1024,
17+
"rtos.idle-thread-stack-size": 512,
1718
"target.mbed_app_start": "0x10000",
1819
"target.components_add" : ["SPIF"],
19-
"cordio.max-connections": 5
20+
"cordio.max-connections": 2,
21+
"ble.ble-role-central": false,
22+
"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
2026
}
2127
}
2228
}

0 commit comments

Comments
 (0)