Tool/software: TI-RTOS
Hello,
I built an observer to read non connectable undirected advertisements from a continuously updating broadcaster. This is built with simplelink_cc2640r2_sdk_2_20_00_49 on the BLE5 stack.
It keeps triggering SC_EVT_INSUFFICIEN_MEM after a few seconds of receiving data (broadcaster pushing ~7 packets every 500ms).
To simplify things, I took the simple_central example and only changed the following:
- Parameters to look for non connectable advertisements
- HCI Whitelist so it only sees my board
- Added a function to print payload from the simplelinkacademy example
- Made it scan continuously by adding SimpleCentral_doDiscoverDevices to the main loop
I cannot find out where the memory leak is occurring, but others have reported this issue too, so there seems to be some missing memory clearing in the example itself
I ran ICall_getHeapStats(&stats); within the SC_EVT_ADV_REPORT and found that I run out of heap in about 75-85 occurrences
Any help with where I should try clearing memory would help.
Thanks,
Mishca