TI E2E Community
Low Power RF & Wireless Connectivity
another way fall into sdk_error_handler()
I have made a blue tooth modul using BT5190 and PAN1325. It's program is based on ez430-accl program with some modifications. Now it works as a brige transfering data to my desk PC. The problem is: It's program will fall into sdk_error_handler() if I take it away from my desk PC and out of range of blue tooth signal when it is transfering data. That is to say: it will stop work and fall into dead loop in sdk_error_handler(). I don't hope it falling into dead loop, It can stop work when out range and should rebuild link and work again when it is back into the range of blue tooth.
the call tack is like this when it falls into sdk_error_handler()
who can tell me what's wrong with BT_alloc_mem()? how can I avoid fall into adk_error_handler()? I just want my blue tooth modul disconnects with desk PC when it is far away from PC and reconnects with PC when it comes back into the range of blue tooth distance.
Have you looked at these posts? http://e2e.ti.com/support/low_power_rf/f/660/t/109528.aspx and http://e2e.ti.com/support/low_power_rf/f/660/t/112960.aspx
I have read those posts you mentioned. sdk_error_handler() is really has relationship with how many bytes BT_spp_send() send. generally to say, 110 bytes is up limit. But I just let BT_spp_send() send 32 bytes data onec a time. and my problem is happend at the condition of in range working well and then out of range working fault. Now I cut down bytes to 16 once a time BT_spp_send() called. Though the problem of BT_alloc_mem() is solved, but new problem of hci_hardware_error_event() happend. the call stack like this:
What's the error of hci_hardware?
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.