Divide by Zero Exception in btm_ble_enq_resolving_list_pending()

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
NiHe_4756201
Level 1
Level 1
First reply posted First question asked Welcome!

Hi,

The product under development uses a CYW4343W and WICED Version: Wiced_006.004.000.0061

The product provides both a BLE server and client for interfacing with other proprietary devices. The server is used for communications with a beacon while the client interfaces to a periodically Advertising device. The product also uses the CYW4343W WiFi.

While debugging the application, a direct LE connection to the BLE Address of the Advertising device is initiated with a scan window of 120ms in an interval of 190ms using wiced_bt_gatt_le_connect() that returns WICED_TRUE. This call results in a Divide by Zero Exception. The debugger shows the call stack to be:- btu_hcif_process_event(), btm_ble_conn_complete(), btm_identity_addr_to_random_pseudo(), btm_ble_read_resolving_list_entry(), btm_ble_enq_resolving_list_pending() where the exception occurs. A BLE sniffer shows that Advertisements were being issued by the device at the time of the exception.

If the product is allowed to run the same code without the debugger being connected multiple BLE connection are made with the Advertising device before a WICED_TIMEOUT occurs as described in an issue raised by a RoHe_4370821 on 28th Dec 2020: -
BTM_ENABLED_EVT with status WICED_TIMEOUT
(https://community.cypress.com/t5/WICED-Studio-Wi-Fi-Combo/BTM-ENABLED-EVT-with-status-WICED-TIMEOUT/...)

Is this a known bug?
Could the issue be caused by the window and interval timings or other settings?
Is there any documentation available about setting scanning windows, intervals and the supervision timer values?
If there is no documentation please could give some guidance on typical settings know to work?

Regards,

0 Likes
1 Solution

Hi @NiHe_4756201 ,

As this issue is getting discussed in a technical case, I am closing this thread.

 

View solution in original post

0 Likes
4 Replies
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hello @NiHe_4756201 ,

Are you facing issues with WICED 6.6 as well?

There is no document as such but you can check the settings in configuration file wiced_bt_cfg.c and refer those values.

 

0 Likes
NiHe_4756201
Level 1
Level 1
First reply posted First question asked Welcome!

Hi,

Upgrading to WICED 6.6 is likely to involve a lot of effort on our side and unless you can reassure us that it would fix this divide by zero exception then it is not something we would do in the short term.?

I have some Blutooth debug logs and screen shots in a debugger from when the problem occurs but I need to check with the BLE advertising device owners that we can share this information, we have a meeting this afternoon.

Regards

0 Likes
lock attach
Attachments are accessible only for community members.
NiHe_4756201
Level 1
Level 1
First reply posted First question asked Welcome!

Hi SheetalJ,

Please find in the attached zip file the BLE Stack debug logs to the point of the exception and two screen shots at the point of the exception showing the location of the issue.

Regards,

0 Likes

Hi @NiHe_4756201 ,

As this issue is getting discussed in a technical case, I am closing this thread.

 

0 Likes