I am new to C5535, and I have this development board eZdsp C5535 kit. I have tried the basic program which was mentioned in the "Quick Start Guide" which I got along with the kit. It worked perfectly. Now, when I try to write a simple code by myself it shows error due to some linking problem. I went through lot of these forums and nothing were of any help to me.
Here is the basic code which I tried to build in CCS v4.2.2:
#include "stdio.h"
#include "ezdsp5535.h"
#include "ezdsp5535_led.h"
#include "ezdsp5535_gpio.h"
void main() {
EZDSP5535_init();
EZDSP5535_LED_init();
printf("Last Line");
}
I have the "lnkx.cmd" present in the project directory where this source file is present. I also have " ezdsp5535bsl.lib" present in the same directory. In the "Include Options", I have added the directory where all the following files are present. Below is the snapshot:
By default, there is another include present: C:\Program Files (x86)\Texas Instruments\ccsv4\tools\compiler\c5500\include
Now, when I build this project, it gives the following results:
**** Build of configuration Debug for project led ****
C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building file: ../main.c'
'Invoking: Compiler'
"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -v5515 -g --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/include" --include_path="F:/Electronic_Odometer/Workspace/Support_Libraries" --diag_warning=225 --ptrdiff_size=16 --memory_model=large --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
'Finished building: ../main.c'
' '
'Building target: led.out'
'Invoking: Linker'
"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -v5515 -g --diag_warning=225 --ptrdiff_size=16 --memory_model=large -z -m"led.map" --warn_sections -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/lib" -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/include" --reread_libs --rom_model -o "led.out" "./main.obj" -l"libc.a" "../ezdsp5535bsl.lib" "../lnkx.cmd"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_GPIO_configBit ../ezdsp5535bsl.lib<ezdsp5535_gpio.obj>
_GPIO_open ../ezdsp5535bsl.lib<ezdsp5535_gpio.obj>
_GPIO_read ../ezdsp5535bsl.lib<ezdsp5535_gpio.obj>
_GPIO_write ../ezdsp5535bsl.lib<ezdsp5535_gpio.obj>
error: unresolved symbols remain
error: errors encountered during linking; "led.out" not built
>> Compilation failure
gmake: *** [led.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project led
The Problems Window looks like this:
I have provided all the details. If anybody here could help me to solve this problem, it would be really good.
Thanks in Advance!

