This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with Hello world


Yes I tried to compile with native cygwin tools but it seem to not work...
I will compile another version of gcc toolchain.. (it is perhaps the version of these tools which are too old)


But for the ARM question...
I compile eCos with the ARM7TDMI template but when I compile my hello world program I can't see the output.
It is normal ?


I compile my program like that :
arm-elf-gcc -g -I arm7tdmi_install/include test.c -Larm7tdmi_install/lib -Ttarget.ld -nostdlib


And I try to debug it like that :
$ arm-elf-gdb -quiet
(gdb) file a.out
Reading symbols from /home/lony/a.out...done.
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .rom_vectors, size 0x40 vma 0x40000
Loading section .text, size 0x120d4 vma 0x40040
Loading section .rodata, size 0x9c0 vma 0x52114
Loading section .data, size 0x31c vma 0x52ad4
Start address 0x40040
Transfer rate: 618368 bits in <1 sec.
(gdb) b main
Breakpoint 1 at 0x40558: file test.c, line 5.
(gdb) l
1       #include <stdio.h>
2
3       main()
4       {
5       printf("Hello\n");
6
7       return 0;
8
9       }
(gdb) r
Starting program: /home/lony/a.out

Breakpoint 1, main () at test.c:5
5       printf("Hello\n");
(gdb) c
Continuing.

But I never get my "Hello", whats wrong? Do you have any idea?

Thanks you.
Best regards

David LONY

Andrew Lunn a écrit :
I just change in Global Build Options -> Global command prefix -> "empty", because I don't have i686-pc-linux-gcc (I tried with i686-pc-cygwin but I don't have i686-pc-cygwin-ar)

So you are trying to compile with the native cygwin tools. I've no
idea if that will work.


I don't have any ARM platform... Only a ARM compiler.

So pick any of the arm targets.


Andrew





-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]