build/ch.elf] Error 1
Posted: Sun Sep 24, 2023 9:45 pm
I am trying to compile a logic using chibios2111 (GCC 11.3.1) for STM32F072 microcontroller. The logic was written and compiled using an older version and I am working to compile it with this version of the chibios. I resolved all of the errors of the compiling process, except the following error.
[nfo]Linking build/ch.elf
c:/chibistudio/tools/gnu tools arm embedded/11.3 2022.08/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-
eabi/bin/ld.exe:rules_memory.ld:314 cannot move location counter backwards (from 20004150 to 20004000)
collect2.exe: error: ld returned 1 exit status
make: *** [../../chibios2111/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:217: build/ch.elf] Error 1
"make all" terminated with exit code 2. Build might be incomplete.[/nfo]
Can you please help me to solve this issue.
Thanks-Mohammad
[nfo]Linking build/ch.elf
c:/chibistudio/tools/gnu tools arm embedded/11.3 2022.08/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-
eabi/bin/ld.exe:rules_memory.ld:314 cannot move location counter backwards (from 20004150 to 20004000)
collect2.exe: error: ld returned 1 exit status
make: *** [../../chibios2111/os/common/startup/ARMCMx/compilers/GCC/mk/rules.mk:217: build/ch.elf] Error 1
"make all" terminated with exit code 2. Build might be incomplete.[/nfo]
Can you please help me to solve this issue.
Thanks-Mohammad