Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: looking for _divsi3

2005-06-27 by roelof t Hooft

Hi,

Just a followup on my own message.
First thanks to yannick and bastian.

The whole thing compiles just ok by
using arm-alf-gcc to link.

The following is the makefile I use :

STARTUP=crt0_test

MCU=arm7tdmi
OPT=s

AFLAGS=-mcpu=$(MCU) -DROM_RUN -I.
CFLAGS=-mcpu=$(MCU) -O$(OPT) -std=gnu99
LFLAGS=-Tlpc2292-rom-v2.ld -nostartfiles
-Wl,-Map=MiniGator.map,--cref,-nostdlib -s

CC=arm-elf-gcc
LNKR=arm-elf-ld
OBCP=arm-elf-objcopy

all:
        $(CC) $(CFLAGS) -c MiniGator.c -o MiniGator.o
        $(CC) $(CFLAGS) -c mg_system.c -o mg_system.o
        $(CC) $(CFLAGS) -c mg_ucuart.c -o mg_ucuart.o
        $(CC) $(AFLAGS) -c $(STARTUP).S -o crt0.o
        $(CC) $(LFLAGS) -o MiniGator *.o
        $(OBCP) -O ihex MiniGator MiniGator.hex

clean:
        rm -f MiniGator.hex
        rm -f *.o
        rm -f MiniGator.elf
        rm -f MiniGator.map


Thank you,

roelof

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.