Closed Student-Jasons closed 2 years ago
This is not a bug, your build turns out 7kB bigger than you have in the chip. You must disable some (a lot of) features to fit in. starting with bootscreen and other fancy stuff
you have a 12 year old microprocessor with 128k of flash.
You cannot enable any extra options or it will not fit (without disabling something else)
region `text' overflowed by 7256 bytes, means the generated firmware is 7256 bytes to large.
This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:
After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.
Thanks, I'll fix it
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
I tried to build with platformio using vsstudio to use bltouch in my ender3, but I got an error and it happened in firmware.elf, not configuration.h, adv, etc. Put the error code and configuration file on this page I'll give you error `Processing melzi (board: sanguino_atmega1284p; platform: atmelavr@~3.4; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/sanguino_atmega1284p.html PLATFORM: Atmel AVR (3.4.0) > Sanguino ATmega1284p (16MHz) HARDWARE: ATMEGA1284P 16MHz, 16KB RAM, 124KB Flash DEBUG: Current (simavr) On-board (simavr) PACKAGES:.text' will not fit in region
text' c:/.platformio/packages/toolchain-atmelavr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: region `text' overflowed by 8114 bytes collect2.exe: error: ld returned 1 exit status *** [.pio\build\melzi\firmware.elf] Error 1 ========================================================================================= [FAILED] Took 22.88 seconds =========================================================================================Environment Status Duration
melzi FAILED 00:00:22.876 ==================================================================================== 1 failed, 0 succeeded in 00:00:22.876 ====================================================================================
터미널 프로세스 "C:.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'melzi'"이(가) 종료되었습니다(종료 코드: 1).
터미널이 작업에서 다시 사용됩니다. 닫으려면 아무 키나 누르세요.
Executing task: C:.platformio\penv\Scripts\platformio.exe run --environment melzi
Processing melzi (board: sanguino_atmega1284p; platform: atmelavr@~3.4; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/sanguino_atmega1284p.html PLATFORM: Atmel AVR (3.4.0) > Sanguino ATmega1284p (16MHz) HARDWARE: ATMEGA1284P 16MHz, 16KB RAM, 124KB Flash DEBUG: Current (simavr) On-board (simavr) PACKAGES:Environment Status Duration
melzi FAILED 00:00:19.383 ==================================================================================== 1 failed, 0 succeeded in 00:00:19.383 ====================================================================================
Processing melzi (board: sanguino_atmega1284p; platform: atmelavr@~3.4; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/sanguino_atmega1284p.html PLATFORM: Atmel AVR (3.4.0) > Sanguino ATmega1284p (16MHz) HARDWARE: ATMEGA1284P 16MHz, 16KB RAM, 124KB Flash DEBUG: Current (simavr) On-board (simavr) PACKAGES:.text' will not fit in region
text' c:/.platformio/packages/toolchain-atmelavr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld.exe: region `text' overflowed by 7256 bytes collect2.exe: error: ld returned 1 exit status *** [.pio\build\melzi\firmware.elf] Error 1 ========================================================================================== [FAILED] Took 8.86 seconds ==========================================================================================Environment Status Duration
melzi FAILED 00:00:08.862 ==================================================================================== 1 failed, 0 succeeded in 00:00:08.862 ====================================================================================
Bug Timeline
It happened after I modified the bl touch code.
Expected behavior
I thought that the firmware with bl touch would build successfully, and I was planning to upload this firmware to my ender3.
Actual behavior
Build failed with error in firmware.elf
Steps to Reproduce
1:Load example setup into ender 3, 2:uncoment #define BLTOUCH, 3:uncoment #define AUTO_BED_LEVELING_BILINEAR, 4: uncoment #define Z_SAFE_HOMING 5:bulid firmware to melzi
Version of Marlin Firmware
2.1.1
Printer model
Creality Ender 3 Pro
Electronics
install bltouch
Add-ons
bltouch
Bed Leveling
No Bed Leveling
Your Slicer
Cura
Host Software
SD Card (headless)
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Marlin.zip