Fix for BTT_EBB42_V1.1 LTO compile issue #25849
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This board benefits from Link Time Optimization due to the limited flash storage, however the default V9.2.1 toolchain from 2019 does not compile a binary that is able to run on the STM32G0B1CBT MCU used on this board. Updating the a later version of the gccarmnoneeabi toolchain (V10 or higher) works for all attempts at compiling and running marlin on the STM32G0B1CBT.
Without this fix the compiled binary does not start to run on the MCU, even though it throws no compile errors.
Requirements
Big Tree Tech EBB42(or 36) V1.1 or V1.2 using a STM32G0B1CBT MCU
Benefits
Reduces the flash usage for a space constrained MCU allowing for more Marlin features to be compiled in whilst keeping features such as the splash screen with minimal issue, and also using the last page of flash for a virtual EEPROM. Its still scraping 98.4% memory usage after this, but wouldn't even fit without LTO.
Configurations
Related Issues