1 of 2 people found this helpful
I don't get any BTM_ENABLED_EVT event, the stack just doesn't call my callback at all.
I also encountered this issue, SDK 184.108.40.206, 20719-B0_Bluetooth.
I created a new project through WICED Bluetooth Desginer by default with LE only mode, added a specific test service and characters for testing. After generated the code, I just set the debug_uart to PUART, and add the log before and after wiced_bt_stack_init() the function, and also at the start of the *_management_callback() callback function that input to wiced_bt_stack_init() function.
After build, burn and run the image to the BCM920739EVAL2_0 board, I get the output log before and after the wiced_bt_stack_init() function, and check the return value of wiced_bt_stack_init() is 0. But the *_management_callback() callback function was not executed at all, the log message added at the start of the *_management_callback() callback function not output at all event after several times reset.
Noramlly, the BTM_ENABLED_EVT event should be transfered into the *_management_callback() callback function after the BLE stack initialized. Though it returns 0 indicates success, but indeed the BLE stack seems has been out of work at that time.
BTW, I built and burned the hello_sensor project image to the development board, it worked fine.
2 of 2 people found this helpful
For SDK 220.127.116.11, 20719-B0_Bluetooth, the root cause of the no BTM_ENABLED_EVT issue I encounted was because the value of the maximum bumber of buffer pools was default set to 0 (uninitialized) in the wiced_bt_cfg_settings data structure when it was automatically generated.
We must manually add the code to set the value for .max_number_of_buffer_pools in wiced_bt_cfg_settings as below.
const wiced_bt_cfg_settings_t wiced_bt_cfg_settings =
/* LE Address Resolution Database Settings */
.addr_resolution_db_size = 10,
+ /* Maximum number of buffer pools */
+ .max_number_of_buffer_pools = 4,
After set the value of .max_number_of_buffer_pools, the application worked fine. :-)