C++ CoIDE collect2.exe: error: ld returned 1 exit status

chillking

Lieutenant
Registriert
Juni 2010
Beiträge
885
Hi zusammen,

ich habe bisher ein Programm mit Keil µVision4 geschrieben, komme hier nun allerdings an die maximale Image-Größe des "freien" Linkers:
.\Test.axf: error: L6047U: The size of this image (33256 bytes) exceeds the maximum allowed for this version of the linker
".\Test.axf" - 1 Errors, 25 Warning(s).
Target not created

Daher habe ich mir CooCox CoIDE installiert und wollte damit arbeiten, allerdings bring ich das Teil einfach nicht zum Kompilieren. Im Moment bekomme ich den Fehler
collect2.exe: error: ld returned 1 exit status
.

Hier die komplette Consolenausgabe:
GCC HOME: C:\CooCox\CoIDE\gcc-arm-none-eabi-4.8\gcc-arm-none-eabi-4_8-2013q4-20131204-win32\bin
compile:
[mkdir] Created dir: C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\fledermaus_detektor\Debug\bin
[mkdir] Created dir: C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\fledermaus_detektor\Debug\obj
[cc] 15 total files to be compiled.
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Wall -ffunction-sections -g -O0 -c -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F407VG -DSTM32F4XX -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\fledermaus_detektor -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\cmsis\device\st\stm32f4xx\include -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\stm32f4xx_stdperiph_driver\src -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\cmsis\include -IC:\CooCox\CoIDE\workspace -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\project\stm32f4xx_stdperiph_templates -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\stm32f4xx_stdperiph_driver\inc -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\utilities\stm32_eval -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_usart.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries\initDevice.cpp C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dac.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\CMSIS\Device\ST\STM32F4xx\Source\Templates\TrueSTUDIO\startup_stm32f40xx.s C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rcc.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_adc.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries\lcd_hd44780.cpp C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_gpio.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\system_stm32f4xx.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_dma.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_spi.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_i2c.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\misc.c C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_tim.c
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries\initDevice.cpp: In member function 'void initDevice::dmaInit()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries\initDevice.cpp:1256:8: warning: enumeration value 'dmaADC3' not handled in switch [-Wswitch]
[cc] switch(this->dmaPeriperal)
[cc] ^
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries\initDevice.cpp:1256:8: warning: enumeration value 'dmaUSART2' not handled in switch [-Wswitch]
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries\initDevice.cpp:1256:8: warning: enumeration value 'dmaUSART3' not handled in switch [-Wswitch]
[cc] Starting link
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -g -nostartfiles -Wl,-Map=Fledermaus_Detektor.map -O0 -Wl,--gc-sections -LC:\CooCox\CoIDE\configuration\ProgramData\Fledermaus_Detektor -Wl,-TC:\CooCox\CoIDE\configuration\ProgramData\Fledermaus_Detektor/arm-gcc-link.ld -g -o Fledermaus_Detektor.elf ..\obj\stm32f4xx_usart.o ..\obj\initDevice.o ..\obj\stm32f4xx_dac.o ..\obj\startup_stm32f40xx.o ..\obj\main.o ..\obj\stm32f4xx_rcc.o ..\obj\stm32f4xx_adc.o ..\obj\lcd_hd44780.o ..\obj\stm32f4xx_gpio.o ..\obj\system_stm32f4xx.o ..\obj\stm32f4xx_dma.o ..\obj\stm32f4xx_spi.o ..\obj\stm32f4xx_i2c.o ..\obj\misc.o ..\obj\stm32f4xx_tim.o
[cc] ..\obj\startup_stm32f40xx.o:(.isr_vector+0x0): undefined reference to `_estack'
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-init.o): In function `__libc_init_array':
[cc] init.c:(.text.__libc_init_array+0x22): undefined reference to `_init'
[cc] collect2.exe: error: ld returned 1 exit status

BUILD FAILED
Total time: 3 seconds

Kann mir jemand helfen?

Gruß Markus
 
Die Linker-Einstellung "Don't use the standard system startup files" rausmachen hab ich getestet, nun kommt folgendes:
GCC HOME: C:\CooCox\CoIDE\gcc-arm-none-eabi-4.8\gcc-arm-none-eabi-4_8-2013q4-20131204-win32\bin
compile:
[mkdir] Skipping C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\fledermaus_detektor\Debug\bin because it already exists.
[mkdir] Skipping C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\fledermaus_detektor\Debug\obj because it already exists.
[cc] Starting dependency analysis for 14 files.
[cc] Parsing ..\..\..\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h
[cc] Parsing ..\..\..\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\CMSIS\Include\core_cm4.h
[cc] Parsing ..\..\..\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\CMSIS\Include\core_cmInstr.h
[cc] Parsing ..\..\..\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\CMSIS\Include\core_cmFunc.h
[cc] Parsing ..\..\..\STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\Libraries\CMSIS\Include\core_cm4_simd.h
[cc] Parsing ..\..\..\libraries\initDevice.cpp
[cc] Parsing ..\..\..\libraries\initDevice.h
[cc] Parsing ..\..\..\libraries\lcd_hd44780.cpp
[cc] Parsing ..\..\..\libraries\lcd_hd44780.h
[cc] 14 files are up to date.
[cc] 0 files to be recompiled from dependency analysis.
[cc] 1 total files to be compiled.
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Wall -ffunction-sections -g -O0 -c -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSTM32F407VG -DSTM32F4XX -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\fledermaus_detektor -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\cmsis\device\st\stm32f4xx\include -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\stm32f4xx_stdperiph_driver\src -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\cmsis\include -IC:\CooCox\CoIDE\workspace -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\project\stm32f4xx_stdperiph_templates -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\libraries\stm32f4xx_stdperiph_driver\inc -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor\stm32f4xx_dsp_stdperiph_lib_v1.3.0\utilities\stm32_eval -IC:\CooCox\CoIDE\workspace\Fledermaus_Detektor C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:113:71: warning: narrowing conversion of '2.2e+4' from 'double' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
[cc] } arten[]={{"Karl",22e3,25e3},{"Mariane",30e3,35e3},{"TIMO",40e3,44e3}};
[cc] ^
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:113:71: warning: narrowing conversion of '2.5e+4' from 'double' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:113:71: warning: narrowing conversion of '3.0e+4' from 'double' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:113:71: warning: narrowing conversion of '3.5e+4' from 'double' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:113:71: warning: narrowing conversion of '4.0e+4' from 'double' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:113:71: warning: narrowing conversion of '4.4e+4' from 'double' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 [-Wnarrowing]
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp: In function 'void ADC_IRQHandler()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:296:12: warning: unused variable 'convValue' [-Wunused-variable]
[cc] uint16_t convValue=ADC_GetConversionValue(ADC1);
[cc] ^
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp: In function 'void cursor(LCD_HD44780, uint8_t)':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\main.cpp:605:5: warning: statement has no effect [-Wunused-value]
[cc] m<<1;
[cc] ^
[cc] Starting link
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -g -nostartfiles -Wl,-Map=Fledermaus_Detektor.map -O0 -Wl,--gc-sections -LC:\CooCox\CoIDE\configuration\ProgramData\Fledermaus_Detektor -Wl,-TC:\CooCox\CoIDE\configuration\ProgramData\Fledermaus_Detektor/arm-gcc-link.ld -g -o Fledermaus_Detektor.elf ..\obj\stm32f4xx_usart.o ..\obj\initDevice.o ..\obj\stm32f4xx_dac.o ..\obj\startup_stm32f40xx.o ..\obj\main.o ..\obj\stm32f4xx_rcc.o ..\obj\stm32f4xx_adc.o ..\obj\lcd_hd44780.o ..\obj\stm32f4xx_gpio.o ..\obj\system_stm32f4xx.o ..\obj\stm32f4xx_dma.o ..\obj\stm32f4xx_spi.o ..\obj\stm32f4xx_i2c.o ..\obj\misc.o ..\obj\stm32f4xx_tim.o
[cc] ..\obj\startup_stm32f40xx.o:(.isr_vector+0x0): undefined reference to `_estack'
[cc] ..\obj\initDevice.o: In function `initDevice::timerInit()':
[cc] ..\obj\initDevice.o:(.ARM.extab.text._ZN10initDevice9timerInitEv+0x0): undefined reference to `__gxx_personality_v0'
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries/initDevice.cpp:623: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\initDevice.o: In function `initDevice::nvicInit()':
[cc] ..\obj\initDevice.o:(.ARM.extab.text._ZN10initDevice8nvicInitEv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `main':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries/initDevice.cpp:749: undefined reference to `__cxa_end_cleanup'
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:243: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text.main+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `display(LCD_HD44780)':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:619: undefined reference to `__cxa_end_cleanup'
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:625: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text._Z7display11LCD_HD44780+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `setupClocks()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:884: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text._Z11setupClocksv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `setupIO()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:932: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text._Z7setupIOv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `setupIncGeber()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:1023: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text._Z13setupIncGeberv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `setupPWM()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:1128: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text._Z8setupPWMv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `setPWM()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:1145: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text._Z6setPWMv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `setVol()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:1159: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\main.o:(.ARM.extab.text._Z6setVolv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\main.o: In function `__static_initialization_and_destruction_0':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor/main.cpp:1159: undefined reference to `__dso_handle'
[cc] ..\obj\lcd_hd44780.o: In function `LCD_HD44780::gpioConfigOut()':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries/lcd_hd44780.cpp:150: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\lcd_hd44780.o:(.ARM.extab.text._ZN11LCD_HD4478013gpioConfigOutEv+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\lcd_hd44780.o: In function `LCD_HD44780::numFloat(float)':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries/lcd_hd44780.cpp:283: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\lcd_hd44780.o:(.ARM.extab.text._ZN11LCD_HD447808numFloatEf+0x0): undefined reference to `__gxx_personality_v0'
[cc] ..\obj\lcd_hd44780.o: In function `LCD_HD44780::LCD_HD44780(unsigned char, GPIO_TypeDef*, unsigned short, GPIO_TypeDef*, unsigned short, GPIO_TypeDef*, unsigned short, GPIO_TypeDef*, unsigned short, GPIO_TypeDef*, unsigned short, GPIO_TypeDef*, unsigned short, GPIO_TypeDef*, unsigned short)':
[cc] C:\CooCox\CoIDE\workspace\Fledermaus_Detektor\libraries/lcd_hd44780.cpp:452: undefined reference to `__cxa_end_cleanup'
[cc] ..\obj\lcd_hd44780.o:(.ARM.extab.text._ZN11LCD_HD44780C2EhP12GPIO_TypeDeftS1_tS1_tS1_tS1_tS1_tS1_t+0x0): undefined reference to `__gxx_personality_v0'
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-abort.o): In function `abort':
[cc] abort.c:(.text.abort+0xa): undefined reference to `_exit'
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-init.o): In function `__libc_init_array':
[cc] init.c:(.text.__libc_init_array+0x22): undefined reference to `_init'
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-signalr.o): In function `_kill_r':
[cc] signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-signalr.o): In function `_getpid_r':
[cc] signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
[cc] sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: Fledermaus_Detektor.elf: hidden symbol `__dso_handle' isn't defined
[cc] c:/coocox/coide/gcc-arm-none-eabi-4.8/gcc-arm-none-eabi-4_8-2013q4-20131204-win32/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld.exe: final link failed: Bad value
[cc]
[cc] collect2.exe: error: ld returned 1 exit status

BUILD FAILED
Total time: 2 seconds

Ich habe kein printf o.ä. im Code, daher auch den Header nicht eingebunden.


Falls jemand ein Tipp hat, wie ich mein Problem bei µVision umgehen kann, wäre ich natürlich auch dankbar!
 
Zuletzt bearbeitet:
komme hier nun allerdings an die maximale Image-Größe des "freien" Linkers:
Hast du mal -Os probiert? CooCox hast du nämlich auch nur mit -O0 konfiguriert, was für µC nur im Debug Sinn macht.

STM32F4xx programmieren ich auch - allerdings unter Linux mit QTCreator bzw Eclipse.
Hier ist eine excellente Anleitung, wie man alles sehr einfach (inkl C++11 und STL) zum laufen bringt: https://istarc.wordpress.com/2014/07/01/stm32f4-hello-world/
Die anderen von ihm geschriebenen Beiträge sind wirklich sehr sehr lesenswert. Es gibt mittlerweile auch eine offizielle ARM Toolchain statt der von Terry: https://launchpad.net/gcc-arm-embedded

Sofern du weiter unter Windows mit CooCox kämpfen willst:
http://stackoverflow.com/questions/22426574/gcc-undefined-reference-to
Dh Linker-Error bedeuten, dass zwar die .h bzw .hpp gefunden werden aber die durch -l angegeben Libs nicht gefunden werden. Hier stimmt also wahrscheinlich was mit Pfaden nicht, denn die fehlende Referenz bezieht sich doch auf Code der nicht von dir kommt, oder?

Ist es Absicht, dass du gcc und nicht g++ aufrufst? Also willst du wirklich ausschließlich C und kein C++?
 
Zuletzt bearbeitet:
Hi,

danke für die Links, werd ich mir zu Gemüte führen.
Würde schon ganz gern bei Windows bleiben.


Hab es gestern noch soweit hinbekommen, dass der Compiler und Linker durchläuft (hab nochmal ganz frisch mit einem neuen Projekt angefangen), nur bezweifel ich noch ein wenig, dass alles passt...der verwendete Speicher, der am Ende angegeben wird, ist doch recht klein (~3kb).

Das war ein Fehler, den ich gestern abend noch entdeckt hab :rolleyes: , hab den Hacken "Support C++" mittlerweile gesetzt.
 
Zurück
Oben