Tool/software: TI-RTOS
Hi Rishabh,
I am reopening mu previous thread
After fixing the invalid free issue I am facing some other problems. As I said earlier I have ported my algorithm code in Vision SDK which has a lot of memory allocations in between function calls.
My usecase is as below,
**********************************************************************
NetworkRx (A15) -> Decode -> VPE -> Sync -> Alg_A (DSP1) -> Display_Video
**********************************************************************
For the same algorithm, I have a separate eclipse project for executing on the Windows platform. There are lot of mathematical computations being done in this code and to verify the ported algorithm works as expected on the TDA2P platform I am verifying the output step by step.
The only difference between the original algorithm code and the ported code is that printf's, malloc's & free's are replaced with Vps_printf's, Utils_memAlloc's & Utils_memFree's respectively.
My usecase was working when I executed the algorithm with malloc & free on TDA2P platform. But after I replaced them with Utils_memAlloc & Utils_memFree, I am not getting the expected output and after starting the usecase I am getting below error,
**********************************************************************
[DSP1 ] 73.627066 s: UTILS: MBX: Utils_mbxSendCmd(): Msg Alloc Failed (0)!!!
[DSP1 ] 73.629079 s: UTILS: MBX: Utils_mbxSendCmd(): Msg Alloc Failed (0)!!!
[DSP1 ] 73.637070 s: UTILS: MBX: Utils_mbxSendCmd(): Msg Alloc Failed (0)!!!
**********************************************************************
Can you suggest what could be the reason for this. Do I need to take care of the mathematical functions being used in my algorithm (fabs(), rand(), sqrtf()...etc) as I am getting different output values on windows platform and on TDA2Px platform after executing these functions, which is why I believe I am getting the above error.
Thanks,
Abhay