This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC2640R2F: Sound lagging when adding IR to hidAdvRemote project

Part Number: CC2640R2F
Other Parts Discussed in Thread: BLE-STACK

Tool/software: TI-RTOS

Hi all,

I'm trying to make a BLE remote with voice and infrared starting form the hidAdvRemote on CC2640R2 stack v1.50.00.08 and I'm facing an issue.

Voice is working fine by itself, the IR is also working fine (I added IR using the driver IRGENCC26XX). But when I'm sending an IR frame and then I'm trying to send voice through BLE, the sound is lagging and I can't find why.

Is there some shared module between IRGENCC26XX and the audio streaming that make the audio streaming failed? Is the IRGENCC26XX modifying some clocks config or something that disturbed the streaming?

FYI I never send IR frame while streaming audio data.

Thanks in advance for your answers,

Sylvain

  • Hello Sylvain,

    The IRGENCC26xx driver will use GPT0, GPT1 and the UDMA hardware modules. From what I can tell, this should not have any overlap with the PDMCC26xx driver used by the voice streaming (uses I2S). However, my best guess is that you may (by presence of the driver) have shrunk the available heap memory and are now failing to allocate buffers from the PDM driver.

    Can you enable heapmgr metrics and ensure that you do not have heapfailures while streaming voice?
    Additionally can you verify that you are consuming PDM buffers quick enough (See the voice section of the BLE-Stack User's Guide for more information)?
    Lastly can you attempt to close the IR driver before beginning PDM streaming and see if that makes a difference.
  • Hi Sean,

    Thanks for your help it seems that you were right it was a memory issue. I solved it by enabling the DYNAMIC MEMORY into the IRGEN driver.

    Thanks for your support,

    Sylvain