build/ch.elf] Error 1

Discussions and support about ChibiOS/RT, the free embedded RTOS.
kafikangi.m
Posts: 2
Joined: Thu Sep 21, 2023 11:49 am
Has thanked: 1 time

build/ch.elf] Error 1

Postby kafikangi.m » 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.

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.


Can you please help me to solve this issue.

Thanks-Mohammad

User avatar
Giovanni
Site Admin
Posts: 14458
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: build/ch.elf] Error 1

Postby Giovanni » Mon Sep 25, 2023 6:44 am

It is possible you are out of RAM memory, try reducing the size of your project.

Giovanni

kafikangi.m
Posts: 2
Joined: Thu Sep 21, 2023 11:49 am
Has thanked: 1 time

Re: build/ch.elf] Error 1

Postby kafikangi.m » Mon Sep 25, 2023 11:19 am

Dear Giovanni,

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

Thanks,


Return to “ChibiOS/RT”

Who is online

Users browsing this forum: No registered users and 5 guests