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.
I create a ccs project in CCS5 and create a main.
I tried to use MEM_alloc but it linking failed. Does anybody know why?
Thank you very much!
The codes are here:
/*
* main.c
*
* Created on: 2011-9-15
* Author: Lucifar
*/
#include "inc/platform.h"
#include <bios.h>
#include <mem.h>
void main(void)
{
void* pSource;
//pSource = MEM_alloc(0,5*1024*1024,0);
}
The errors are like this:
'Building target: 6678_common_test.out'
'Invoking: C6000 Linker'
"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --diag_warning=225 --abi=eabi -z -m"6678_common_test.map" --stack_size=1024 --warn_sections -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv5/tools/compiler/c6000/include" -i"C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/lib/c6000" -i"C:/Program Files/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib" -i"C:\Program Files\Texas Instruments\bios_5_41_10_36\packages\ti\bios\lib" --reread_libs --rom_model -o "6678_common_test.out" "./main.obj" -l"libc.a" -l"C:\Documents and Settings\Lucifar\My Documents\workspaceV5_6678_common_test\6678_common_test\lib\ti.platform.evm6678l.ae66"
<Linking>
>> Compilation failure
undefined first referenced
symbol in file
--------- ----------------
MEM_alloc ./main.obj
Lucifar,
Looking at the paths in your build command, it appears that you are creating a BIOS5 project for the C6678. If so, this is not supported. There is no BIOS5 support for C66x devices, you would need to use BIOS6(SYS/BIOS). Please see the device support matrix in the release notes for BIOS in the BIOS installation folder.
There are example project templates for SYSBIOS to help you get started. This screenshot is taken wtih CCS 5.1, if you're using 5.0.x the project templates will appear in step 5 as you go through the new project wizard.