Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EvoPilotremote.ino.elf section .text' will not fit in region FLASH' #6

Open
syntacrsc opened this issue Nov 28, 2024 · 0 comments
Open

Comments

@syntacrsc
Copy link

syntacrsc commented Nov 28, 2024

Hello.

While trying to verify the .ino code I get the error below - looks like the "Genric STM32F1" series board does not have enough space for the build?

I've already tried to disable some of the HAL Modules via hal_conf_extra.h

#define HAL_ADC_MODULE_DISABLED
#define HAL_I2C_MODULE_DISABLED
#define HAL_RTC_MODULE_DISABLED
//#define HAL_SPI_MODULE_DISABLED
#define HAL_TIM_MODULE_DISABLED

This reduced the size a little but not enough to fit.

Just for curiousity sake I tried "Genric STM32F2 series" board - that compiles correctly (but I'm not sure what will happen when I'd try to flush to a STM32F1 series board).

My IDE ist Arduino IDE 2.3.3.

What am I doing wrong?

Any help is highly appreciated!

Thanks and kind regards,
Ralph...

P.S.:
This is the error message I'm getting:

.../AppData/Local/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld.exe: ...\AppData\Local\Temp\arduino\sketches\FBC750E30B0B858CBB680603706BD483/EvoPilotremote.ino.elf section .text' will not fit in region FLASH'
.../AppData/Local/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/13.2.1-1.1/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 15976 bytes
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant