Hi,
I'm new to Linux development and have just installed the SDK "AM3517SDK 05_03_02_00" according to the installation guide.
My target platform is the Zoom AM3517EVM from Logic PD.
I have the bootloader and the 2.6.37 kernel running on the target platform. (Recompiled from sources.)
I noticed that CCS is now using the TMS470 toolchain instead of the Code Sourcery toolchain which I have previousley used with CCS 5.0.1.
When I create a new CCS Project with default settings I am unable to succesfully build a hello world application using the new setup.
The source for the program is simple:
#include <stdio.h>
/*
* hello.c
*/
void main(void) {
printf("Hello World!\n");
}
The output from the build process is:
**** Build of configuration Debug for project hello_world ****
/opt/ti/ccsv5/utils/bin/gmake -k all
Building file: ../hello.c
Invoking: TMS470 Compiler
"/opt/ti/ccsv5/tools/compiler/tms470/bin/cl470" -mv7A8 -g --include_path="/opt/ti/ccsv5/tools/compiler/tms470/include" --diag_warning=225 --display_error_number --abi=eabi --code_state=32 --preproc_with_compile --preproc_dependency="hello.pp" "../hello.c"
Finished building: ../hello.c
Building target: hello_world.out
Invoking: TMS470 Linker
"/opt/ti/ccsv5/tools/compiler/tms470/bin/cl470" -mv7A8 -g --diag_warning=225 --display_error_number --abi=eabi --code_state=32 -z -m"hello_world.map" --warn_sections -i"/opt/ti/ccsv5/tools/compiler/tms470/lib" -i"/opt/ti/ccsv5/tools/compiler/tms470/include" --reread_libs --rom_model --be32 -o "hello_world.out" "./hello.obj" -l"libc.a"
<Linking>
warning #10247-D: creating output section ".sysmem" without a SECTIONS
specification
warning #10210-D: creating ".stack" section with default size of 0x800; use the
-stack option to change the default size
warning #10210-D: creating ".sysmem" section with default size of 0x800; use
the -heap option to change the default size
Finished building target: hello_world.out
**** Build Finished ****
When I run the hello_world.out on the target board i get the error " /usr/bin/hello_world.out: line 1: syntax error: word unexpected (expecting ")") ", which to me suggest that the file is not recognized as an executable.
If I change the Device Endianness from "be32" to "little" and rebuild and rerun on the target I get the message "Killed".
I must be missing something obvious but I just don't see it.
Does anyone have a suggestion?
Best regards,
Brian.