Apr 30, 2018
12:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 30, 2018
12:57 AM
Test on CYW943438 with sdk-6.1.
To test if it is fine to repeat init/deinit bt_stack by calling wiced_bt_stack_init/wiced_bt_stack_deinit.
My test code is calling wiced_bt_ble_observe() once got BTM_ENABLED_EVT in the wiced_bt_stack_init callback.
The wiced_bt_ble_observe() scan for 10 seconds and once it is done.
Calling wiced_bt_stack_deinit and wiced_bt_stack_init again to re-start scan.
Observe the memory usage by mallinfo().
Then you can find the "Memory in use keep growth, the available memory becomes smaller and smaller.
i.e. It's clearly a memory leak while re-init bt stack.
Labels
- Labels:
-
Wifi+Bluetooth
4 Replies