Topic: STM32 DFU - Using DFU startup and script file, but it can't link!
Hi.
I've made a couple of projects using DFU, and they compiled without problems.
But with this new project I keep getting this error when I compile, and I can't find the problem.
Running: LD
"C:\Program Files (x86)\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -mcpu=cortex-m3 -mthumb -Wl,-T -Xlinker "out\QuickStart_STM32F103.elf.ld" -u _start -Wl,-static -Wl,--gc-sections -nostartfiles -Wl,-Map -Xlinker "lst\QuickStart_STM32F103.map"
c:/program files (x86)/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld.exe: DISCARD has both ordered [`.ARM.exidx' in c:/program files (x86)/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/thumb2\libgcc.a(_divdi3.o)] and unordered [`.v4_bx' in c:/program files (x86)/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/thumb2\libgcc.a(_clz.o)] sections
c:/program files (x86)/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld.exe: final link failed: Bad value
collect2: ld returned 1 exit status
Does any of you know what causes the linker to give me this error?
Best Regards
Thomas Jespersen
Last edited by tkj (2010-03-28 11:22:29)