MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.29k stars 19.24k forks source link

[BUG] (bug summary) A very, very important build-related issue #24741

Closed Student-Jasons closed 2 years ago

Student-Jasons commented 2 years ago

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:

Environment Status Duration


melzi FAILED 00:00:22.876 ==================================================================================== 1 failed, 0 succeeded in 00:00:22.876 ====================================================================================

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:

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

Additional information & file uploads

Marlin.zip

EvilGremlin commented 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

EvilGremlin commented 2 years ago

for reference: https://github.com/MarlinFirmware/Marlin/compare/bugfix-2.1.x...EvilGremlin:Marlin:bugfix-2.1-testmelzi

ellensp commented 2 years ago

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.

ellensp commented 2 years ago

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.

Student-Jasons commented 2 years ago

Thanks, I'll fix it

github-actions[bot] commented 2 years ago

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.