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: PDMCC26XX driver initialization

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hello,

    PDMCC26XX driver initialization is failing due to failing of PDMCC26XX_I2S_open.

    In PDMCC26XX_I2S_open function, PDMCC26XX_I2S_allocateBuffers function fails, because malloc function returns NULL.

    ICall_malloc and ICall_free functions are selected as malloc and free functions respectively. What do you suggest?

Regards.

Oytun

  • Hi Oytun,

    There's a few different ways to increase the amount of RAM allocated to the ICall Heap. Note that the ICall Heap is always the space remaining after all static and application specific memory has been allocated.

    You can eliminate static RAM usage in your application, this can be done by doing more dynamic allocation instead of defining static buffers.

    You can also use the AUX Ram, and store some statically allocated variables there.

    You can use Cache as RAM - this will move application specific memory there. (.bss)

    Cache as RAM is probably the easiest one to implement, see software-dl.ti.com/.../memory_management.html and will provide you with the most amount of potiental ICall Heap. (At least to make sure the PDM driver can successfully open)

    Regards,
    Rebel