Moin, Ich hab auf meiner Hardware einen LPC1768 + DP83848 und versuch das ganze zum laufen zu bringen. (Ethernetverbindung...) Dafür hab ich mir das Beispiel von http://www.coocox.org/forum/viewtopic.php?t=5007&f=9 runtergeladen. (Da werden die gleichen Komponenten verwendet) Hab das ganze also in meinen Workspace kopiert und siehe da es funktioniert nicht. (BUILD FAILED - [cc] collect2.exe: error: ld returned 1 exit status) Hab das ganze im CooCox-Forum gepostet ( http://www.coocox.org/forum/viewtopic.php?f=9&t=5184 ) und den Hinweis bekommen "don't forget to add the C Library code component" Hab ich gemacht Configuration -> Link -> Options: "Use base C Library" Muss ich die sonst noch irgendwie einbinden? Überseh ich irgendwas grundliegendes? Gesamte Ausgabe nach Build ist: GCC HOME: C:\Program Files (x86)\GNU Tools ARM Embedded\4.9 2015q1\bin compile: [mkdir] Skipping C:\Users\Sony\CoIDE\workspace\hello-world\CoIDE\hello-world\Debug\bin because it already exists. [mkdir] Skipping C:\Users\Sony\CoIDE\workspace\hello-world\CoIDE\hello-world\Debug\obj because it already exists. [cc] Starting dependency analysis for 13 files. [cc] Parsing ..\..\..\..\..\..\Library\CMSIS\core_cm3.c [cc] Parsing ..\..\..\..\..\..\Library\CMSIS\system_LPC17xx.c [cc] Parsing ..\..\..\..\..\..\Library\CMSIS\core_cm3.h [cc] Parsing ..\..\..\..\..\..\Library\Drivers\src\lpc17xx_emac.c [cc] Parsing ..\..\..\..\inc\uip-conf.h [cc] Parsing ..\..\..\..\..\..\uip\psock.c [cc] Parsing ..\..\..\..\..\..\uip\uip_arp.c [cc] Parsing ..\..\..\..\..\..\uip\uip.c [cc] Parsing ..\..\..\..\src\hello-world.c [cc] 13 files are up to date. [cc] 0 files to be recompiled from dependency analysis. [cc] 0 total files to be compiled. [cc] 0 total files to be compiled. [cc] Starting link [cc] arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -g2 -nostartfiles -Wl,-Map=hello-world.map -O0 -Wl,--gc-sections -LC:\Users\Sony\AppData\Roaming\CooCox\CoIDE\configuration\ProgramData\h ello-world -Wl,-TC:\Users\Sony\AppData\Roaming\CooCox\CoIDE\configuration\ProgramDa ta\hello-world/arm-gcc-link.ld -g -o hello-world.elf ..\obj\core_cm3.o ..\obj\psock.o ..\obj\hello-world.o ..\obj\tapdev.o ..\obj\clock-arch.o ..\obj\system_LPC17xx.o ..\obj\startup_LPC17xx.o ..\obj\uip_arp.o ..\obj\uip.o ..\obj\main.o ..\obj\lpc17xx_systick.o ..\obj\timer.o ..\obj\lpc17xx_emac.o -lm -lgcc -lc [cc] c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/ armv7-m\libc.a(lib_a-sbrkr.o): In function `_sbrk_r': [cc] sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk' [cc] c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/ armv7-m\libc.a(lib_a-writer.o): In function `_write_r': [cc] writer.c:(.text._write_r+0x10): undefined reference to `_write' [cc] c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/ armv7-m\libc.a(lib_a-closer.o): In function `_close_r': [cc] closer.c:(.text._close_r+0xc): undefined reference to `_close' [cc] c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/ armv7-m\libc.a(lib_a-fstatr.o): In function `_fstat_r': [cc] fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat' [cc] c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/ armv7-m\libc.a(lib_a-isattyr.o): In function `_isatty_r': [cc] isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty' [cc] c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/ armv7-m\libc.a(lib_a-lseekr.o): In function `_lseek_r': [cc] lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek' [cc] c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/ armv7-m\libc.a(lib_a-readr.o): In function `_read_r': [cc] readr.c:(.text._read_r+0x10): undefined reference to `_read' [cc] collect2.exe: error: ld returned 1 exit status BUILD FAILED Total time: 0 seconds Danke schonmal im Voraus.
Bitte auch Lösungen posten wenn sich ein Thema von allein gelöst hat, sonst bringt doch ein Forum mit Suchfunktion nichts. Wäre super!
Wie in meiner Frage schon geschrieben hatte ich das ganze auch im CooCox-Forum gepostet ( http://www.coocox.org/forum/viewtopic.php?f=9&t=5184 ) und da kam dann auch die Lösung bei rum. Eigentlich ganz einfach ...don't forget to add the C Library code component! Add C Library code component. It will add a syscall.c file to your project. und das wars auch schon.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.