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

Fix for BTT_EBB42_V1.1 LTO compile issue #25849

Merged
merged 2 commits into from
May 22, 2023
Merged

Fix for BTT_EBB42_V1.1 LTO compile issue #25849

merged 2 commits into from
May 22, 2023

Conversation

alextrical
Copy link
Contributor

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

This board benefits from Link Time Optimisations 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
@thinkyhead thinkyhead merged commit 9ceecef into MarlinFirmware:bugfix-2.1.x May 22, 2023
ncksnydr added a commit to ncksnydr/Narungol-Marlin-Firmware that referenced this pull request May 22, 2023
… into feature/bugfix-2.1.x

* 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marlin: (61 commits)
  🔨 Fix BTT EBB42 V1.1 compile with -flto (MarlinFirmware#25849)
  [cron] Bump distribution date (2023-05-22)
  🧑‍💻 Fall back to SPI0 with YHCB2004 (MarlinFirmware#25856)
  🩹 Fix ProUI Manual Mesh / UBL Viewer (MarlinFirmware#25858)
  🩹 Fix TFT LVGL compile error (MarlinFirmware#25865)
  [cron] Bump distribution date (2023-05-21)
  📝 MKS TinyBee pins header
  🚸 Improve EEPROM validation (MarlinFirmware#25860)
  [cron] Bump distribution date (2023-05-20)
  🎨 Cutter pins cleanup
  [cron] Bump distribution date (2023-05-19)
  🩹 M493 report followup
  ✨ I3DBEEZ9 board (MarlinFirmware#25614)
  🔨 Fix Windows path backslash treated as escape
  [cron] Bump distribution date (2023-05-18)
  🚸 Unify edit limits for some E3V2 LCDs (MarlinFirmware#25045)
  [cron] Bump distribution date (2023-05-17)
  🐛 Fix MKS Robin Nano 1.3 F4 pin collision (MarlinFirmware#25838)
  🚸 Support Bed Leveling Mesh > 16x16
  🔧 TMC Config Inheritance followup (MarlinFirmware#25783)
  ...

Signed-off-by: Nick Snyder <[email protected]>

# Conflicts:
#	config/ncksnydr/narungol/2.1/Configuration.h
tspiva pushed a commit to tspiva/Marlin that referenced this pull request May 25, 2023
Andy-Big pushed a commit to Andy-Big/Marlin_FB_Reborn that referenced this pull request Jul 15, 2023
Andy-Big pushed a commit to Andy-Big/Marlin_FB_Reborn that referenced this pull request Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants