stm32duino / Arduino_Core_STM32

STM32 core support for Arduino
https://github.com/stm32duino/Arduino_Core_STM32/wiki
Other
2.71k stars 955 forks source link

compilation error #2111

Closed deadly16soma closed 10 months ago

deadly16soma commented 10 months ago

when i try to compile the program using stm32f1 series its giving the below error

section .text' will not fit in regionFLASH' /home/cepl/.arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 22324 bytes

fpistm commented 10 months ago

Your sketch is too big for the selected board. Try to reduce your sketch or optimize the build following the wiki.