Part Number: CC2640R2F
Other Parts Discussed in Thread: CC2540
Hi everyone,
I am using stack simplelink_cc2640r2_sdk_1_50_00_58 with the PDM driver included.
I found heapmgrMemFail after enable BOARD_DISPLAY_UART, so I enable CACHE_AS_RAM and AUX_AS_RAM, no heapmgrMemFail anymore, the total heap size is 11411 ( I checked the heap_start and heap_end in .map)
But when I test with 1kHz sinewave with CC2540 USB, there is package drop after 15 to 20 seconds..
If I disable CACHE_AS_RAM and disable BOARD_DISPLAY_UART, it doesn't have package drop over 30 seconds!
Does the CACHE_AS_RAM affect the performance? How can I improve the audio quality?
I check the above Sean's answer but not really understand point no 5. from
"If none of that works you can devise a static buffer approach where you statically allocate a pool of voice buffers in the hid_adv_remote app. Then you can modify the HIDAdvRemote_audioMalloc and HIDAdvRemote_audioFree to use buffers from that pool. This guarantees that malloc will never fail on voice transmissions but will pinch the overall heap size available down because the heap shrinks as .bss increases. "
Please advise how to do that or is there other way to improve the package drop.. thank you very much!!
Best regards
David