ive got an ARM7TDMI EB40 eval board, and havent even been able to load a program onto it.
i have downloaded arm-elf-gcc. and am completely stumped about how to use it.
here is my current way of starting it:
Code:
arm-elf-gcc led_blink.c -Isoftware -mcpu=arm7tdmi -mthumb
(I got the switches from various forum discussions on the www)
I get this:
Code:
/tmp/cckwpwwe.o(.text+0x36): In function `delay':
: undefined reference to `at91_pio_read'
/tmp/cckwpwwe.o(.text+0x5a): In function `delay':
: undefined reference to `at91_pio_read'
/tmp/cckwpwwe.o(.text+0x70): In function `delay':
: undefined reference to `at91_pio_read'
/tmp/cckwpwwe.o(.text+0x90): In function `delay':
: undefined reference to `PIO_DESC'
/tmp/cckwpwwe.o(.text+0xa8): In function `main':
: undefined reference to `at91_pio_open'
/tmp/cckwpwwe.o(.text+0xb8): In function `main':
: undefined reference to `at91_pio_open'
/tmp/cckwpwwe.o(.text+0xc4): In function `main':
: undefined reference to `at91_pio_write'
/tmp/cckwpwwe.o(.text+0xd4): In function `main':
: undefined reference to `at91_pio_write'
/tmp/cckwpwwe.o(.text+0xe4): In function `main':
: undefined reference to `at91_pio_write'
/tmp/cckwpwwe.o(.text+0xf4): In function `main':
: undefined reference to `at91_pio_write'
/tmp/cckwpwwe.o(.text+0x104): In function `main':
: undefined reference to `at91_pio_write'
/tmp/cckwpwwe.o(.text+0x114): more undefined references to `at91_pio_write' foll ow
/tmp/cckwpwwe.o(.text+0x128): In function `main':
: undefined reference to `PIO_DESC'
collect2: ld returned 1 exit status
led_blink is a sample file from the CD
software/ is the directory where all the headers from the CD are.
I can connect to angel(on board) with gdb:
Code:
arm-elf-gdb redboot_RAM.elf
(gdb) tar rdi s=/dev/ttyS0
but what do these options like rdi and s and -mthumb actually mean?
can someone help plz.