I am in the process of migrating a C5510 project to run in DSP/BIOS. I'm pretty much done but am having problems with dynamic memory. The program uses the library functions minit() and calloc(). When I build the project, I get the following linker errors:
<Linking>
error: symbol "_free" redefined: first defined in
"C:/CCStudio_v3.3/bios_5_33_03/packages/ti/bios/lib/bios.a55L<malloc.o55L>";
redefined in "C:/CCStudio_v3.3/UpgradesAndPackages/C5500 Code Generation
Tools 4.3.1/lib/rts55x.lib<memory.obj>"
error: symbol "_calloc" redefined: first defined in
"C:/CCStudio_v3.3/bios_5_33_03/packages/ti/bios/lib/bios.a55L<malloc.o55L>";
redefined in "C:/CCStudio_v3.3/UpgradesAndPackages/C5500 Code Generation
Tools 4.3.1/lib/rts55x.lib<memory.obj>"
error: symbol "_realloc" redefined: first defined in
"C:/CCStudio_v3.3/bios_5_33_03/packages/ti/bios/lib/bios.a55L<malloc.o55L>";
redefined in "C:/CCStudio_v3.3/UpgradesAndPackages/C5500 Code Generation
Tools 4.3.1/lib/rts55x.lib<memory.obj>"
error: symbol "_malloc" redefined: first defined in
"C:/CCStudio_v3.3/bios_5_33_03/packages/ti/bios/lib/bios.a55L<malloc.o55L>";
redefined in "C:/CCStudio_v3.3/UpgradesAndPackages/C5500 Code Generation
Tools 4.3.1/lib/rts55x.lib<memory.obj>"
If I comment out the code containing the function calls, the program builds. Can someone help me understand why this happens and how to fix it? I thought DSP/BIOS allowed for the use of dynmaic memory allocation...
Mike