ARM 2106 GnuCC problem question How do you compile a program for it.

I have a ARM2106 PCB and the chip is talking with the Philips Serial Port ISP program OK. I have installed the Cygnus GnuCC compiler onto my PC. It has the Arm tools, files and stuff too.

Does anyone know what the command line commands might be to get it to compile and Link a small simple C program? I am just trying to see if I can get it to do something. There are a couple of example C programs for blinking LED's and Serial UART "Hello World" displaying.


Reply to
Earl Bollinger
Loading thread data ...

This is the sort of problem that has come up on the LPC2100 Yahoo group:

formatting link


Leon Heller, G1HSM
 Click to see the full signature
Reply to
Leon Heller




please go to


Reply to

Thanks for all your responses, Sorry after going though all the manuals I found and looking through the messages in this group and the LPC2100 has left me pretty much overwelmed at the moment.

I installed the GNUC++ compiler from Cygnus and I can run the following kinds of commands OK It looks like I have version 3.3.1 of the file sets. arm-uclibc-gcc -S main_led.c arm-uclibc-gcc -mcpu=arm7tdmi -mthumb -O2 -g -c main_led.c arm-uclibc-gcc -mcpu=arm7tdmi -mthumb -o main_led main_led.o -lc arm-uclibc-objcopy --output-target srec main_led main_led.srec arm-uclibc-objcopy --output-target ihex main_led main_led.hex arm-uclibc-objcopy --output-target binary main_led main_led.bin

The arm-uclibc-gcc -mcpu=arm7tdmi -mthumb -o main_led main_led.o -lc command line issues a couple of warnings that may or may not be OK. Things like Warning Type of Symbol '__uClibc_main' changed from 2 to 13 Warning Internetworking not enabled.

Anyway, if I use the arm-uclibc-gcc -mcpu=arm7tdmi -mthumb -o main_led main_led.o -lc and one of the arm-uclibc-objcopy commands, is the file generated ready to be downloaded or not? Or do I still need to link it and assemble it before downloading to the


It would be nice to have a simple example with the command line strings needed to compile it so it can be downloaded. Then I have something of a reference point to see if my compiler is setup correctly or not. Then of course maybe I have installed the wrong compiler too. Thanks

Reply to
Earl Bollinger

No need for this (only if you like to know, what gcc does).

With this CMD the linker will use a standard linker-script which most likely does not fit your needs.

Someone in the LPC21xx Yahoo group might have one for you or you do the linking with: arm-uclibc-gcc -Wl,-Ttext,0x40000100 -mthumb -o main_led main_led.o

This will place the text segment at 0x40000100 (SRAM) and all other sections behind the text.

Do some ARM/GCC searching in this news group ( ) to get links on ARM + GCC, there are a lot examples floating around :-)

Do not email to, it's a spam-only account :-)
 Click to see the full signature
Reply to
42Bastian Schick

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.