llpc213x_lpc214x_examples

OP #6199339
Rate this post
• ▲ 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$
OP #6202456
Rate this post
• ▲ 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
OP #6204129
Rate this post
• ▲ 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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.