EmbDev.net

Forum: ARM programming with GCC/GNU tools llpc213x_lpc214x_examples


von Sim B. (cocoz)


Attached files:

Rate this post
0 useful
not useful
hello i'm just starting out in gcc programming i want to compile on a 
lpc 2134/01 chip to use uart when i type my make in the terminal it 
gives me a compilation error which i don't know where it comes 
from.please if someone can help me
I attach project here

lpc213x_lpc214x_examples



sim@sim-Aspire-5750:~/Bureau/lpc213x_lpc214x_examples/UART$ make all

-------- begin (mode: ROM_RUN) --------
arm-elf-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is 
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.


Assembling (ARM-only): ../Common_WinARM/src/Startup.S
arm-elf-gcc -c -mcpu=arm7tdmi-s -mthumb-interwork -I. -x 
assembler-with-cpp -DROM_RUN -D__WinARM__ 
-Wa,-adhlns=../Common_WinARM/src/Startup.lst,-gdwarf-2 
../Common_WinARM/src/Startup.S -o ../Common_WinARM/src/Startup.o
../Common_WinARM/src/Startup.S:0: error: bad value (arm7tdmi-s) for 
-mcpu= switch
Makefile:464 : la recette pour la cible 
« ../Common_WinARM/src/Startup.o » a échouée
make: *** [../Common_WinARM/src/Startup.o] Erreur 1
sim@sim-Aspire-5750:~/Bureau/lpc213x_lpc214x_examples/UART$

von Muhammad Moiz K. (Company: None) (moizengr92)


Rate this post
0 useful
not useful
Hi Sim,

Have you properly set up the paths of the WinARM? Moreover what OS are 
you using?

von Sim B. (cocoz)


Rate this post
0 useful
not useful
hi my freind i never do any things i just open terminal and writing make
clean and make all  am on unbuntu 16.04

gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is 
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE

von Sim B. (cocoz)


Rate this post
0 useful
not useful
hello my friend I am really a novice in gcc compilation I just  replaced 
MCU by arm7 in makefile it seems to work but I receive another alert 
from the assembler who says name of missing cpu I reopened my makefile 
to find the line on which I must act j not found believing to act on 
-march and -mtune but on my makefile they do not appear



root@sim-Aspire-5750:/home/sim/Bureau/lpc213x_lpc214x_examples/UART# 
make all

-------- begin (mode: ROM_RUN) --------
arm-elf-gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is 
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.


Assembling (ARM-only): ../Common_WinARM/src/Startup.S
arm-elf-gcc -c -mcpu= -mthumb-interwork -I. -x assembler-with-cpp 
-DROM_RUN -D__WinARM__ 
-Wa,-adhlns=../Common_WinARM/src/Startup.lst,-gdwarf-2 
../Common_WinARM/src/Startup.S -o ../Common_WinARM/src/Startup.o
Messages de l'assembleur:
Erreur: nom de cpu manquant «  »
Makefile:464 : la recette pour la cible 
« ../Common_WinARM/src/Startup.o » a échouée
make: *** [../Common_WinARM/src/Startup.o] Erreur 1
root@sim-Aspire-5750:/home/sim/Bureau/lpc213x_lpc214x_examples/UART#

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig