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$
Hi Sim, Have you properly set up the paths of the WinARM? Moreover what OS are you using?
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
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#
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.