NimBLE memory usage analysis

This commit is contained in:
Anatole SCHRAMM 2023-03-14 17:48:55 +01:00
parent bf6433983b
commit 286eb408ab

View File

@ -167,14 +167,14 @@ tls_bt_init(uint8_t uart_idx)
ble_hs_cfg.gatts_register_cb = on_svr_register_cb;
ble_hs_cfg.store_status_cb = ble_store_util_status_rr;
/* Initialize all packages. */
nimble_port_init();
nimble_port_init(); // 7 k ram gone --> 112691
/*Application levels code entry*/
tls_ble_gap_init();
tls_bt_util_init();
tls_ble_gap_init(); // 0k ram gone
tls_bt_util_init(); // 0k ram gone
/*Initialize the vuart interface and enable controller*/
ble_hci_vuart_init(uart_idx);
ble_hci_vuart_init(uart_idx); // 47k gone --> 65423
/* As the last thing, process events from default event queue. */
tls_nimble_start();
tls_nimble_start(); // 3k gone --> 62175
while(bt_adapter_state == WM_BT_STATE_OFF) {
tls_os_time_delay(10);