[arm-gnu] Problem with own HelloWorld@uclinux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[arm-gnu] Problem with own HelloWorld@uclinux
- To: arm-gnu@xxxxxxxxxxxxxxxx
- Subject: [arm-gnu] Problem with own HelloWorld@uclinux
- From: Maik Scholz <Scholz.Maik@xxxxxxxxxxx>
- Date: Mon, 20 Jun 2011 23:12:25 +0200
Hi,
i have a Olimex LPC2468 PCB with uclinux installed.
Now I like to compile my own application on a windows
host.
But when I compile this code ...
main.c:
#include <stdio.h>
int main() {
printf("Hello World\n");
return 0;
}
... with "Sourcery G++ Lite ARM uClinux Sourcery G++ Lite 2011.03-46"
and this Makefile ...
Makefile:
CSPATH=C:/Programme/CodeSourcery/SourceryG++Lite/bin
CC=${CSPATH}/arm-uclinuxeabi-gcc
all: ${OBJECTS}
${CC} -o mytest src/main.c
... and run it on the board ...
/var> tftp -g -r mytest 192.168.1.37
/var> chmod +x mytest
/var> ./mytest
/var>
Then I can't see any output?
When I run this precompiled binary
"http://www.mikrocontroller.net/attachment/61998/hallo-welt", then
"Hello World" is printed as expected.
Any hints?
Thanks
Maik Scholz