Hey guys,
I recently started a project to do an AEC (Acoustic Echo Cancellation) module processing on top of ADSP-21489, where the output of channel 1 is processed by AEC, ANS (20ms per frame) and the output of channel 2 is processed by ANS, ECHO/REVERB (5ms per frame).
Then my problem is that the processing of the first channel almost exhausts the on-chip heap, so I want to put some variables from the AEC into SDRAM, but the problem is that all the parameters in the AEC are malloced and initialized inside the function, and then passed through pointers. At the moment I found a function set_alloc_type(char * heap_name) that can reset the current heap location, but it only works for variables of type int, and it doesn't work because it conflicts with the type of many variables in my AEC.
Any help is greatly appreciated.