Page 1 of 1

build/ch.elf] Error 1

Posted: Sun Sep 24, 2023 9:45 pm
by kafikangi.m
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

Re: build/ch.elf] Error 1

Posted: Mon Sep 25, 2023 6:44 am
by Giovanni
It is possible you are out of RAM memory, try reducing the size of your project.

Giovanni

Re: build/ch.elf] Error 1

Posted: Mon Sep 25, 2023 11:19 am
by kafikangi.m
Dear Giovanni,

Thank you so much for your reply. I will try to reduce the size of the program.

Thanks,