From cbdc78ec0f1e55e10afb18b07ec02729b6043948 Mon Sep 17 00:00:00 2001 From: Alexey Shvetsov Date: Thu, 29 Mar 2018 01:35:20 +0300 Subject: [PATCH] Fix STM32 compilation with PlatformIO (#10245) --- Marlin/src/HAL/HAL_STM32F1/HAL_spi_Stm32f1.cpp | 2 +- Marlin/src/config/examples/stm32f103ret6/Configuration.h | 4 ++-- platformio.ini | 9 +++++++++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Marlin/src/HAL/HAL_STM32F1/HAL_spi_Stm32f1.cpp b/Marlin/src/HAL/HAL_STM32F1/HAL_spi_Stm32f1.cpp index aed7e2dcef..d0985eb23d 100644 --- a/Marlin/src/HAL/HAL_STM32F1/HAL_spi_Stm32f1.cpp +++ b/Marlin/src/HAL/HAL_STM32F1/HAL_spi_Stm32f1.cpp @@ -41,7 +41,7 @@ #include "pins_arduino.h" #include "spi_pins.h" #include "../../core/macros.h" -#include +#include // -------------------------------------------------------------------------- // Public Variables diff --git a/Marlin/src/config/examples/stm32f103ret6/Configuration.h b/Marlin/src/config/examples/stm32f103ret6/Configuration.h index 4de795dba9..3602985015 100644 --- a/Marlin/src/config/examples/stm32f103ret6/Configuration.h +++ b/Marlin/src/config/examples/stm32f103ret6/Configuration.h @@ -1159,7 +1159,7 @@ // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily). // M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to. // -#define EEPROM_SETTINGS // Enable for M500 and M501 commands +//#define EEPROM_SETTINGS // Enable for M500 and M501 commands //#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release! //#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM. @@ -1176,7 +1176,7 @@ // // M100 Free Memory Watcher // -#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose +//#define M100_FREE_MEMORY_WATCHER // uncomment to add the M100 Free Memory Watcher for debug purpose // // G20/G21 Inch mode support diff --git a/platformio.ini b/platformio.ini index aba312694b..227b1ef1be 100644 --- a/platformio.ini +++ b/platformio.ini @@ -235,6 +235,15 @@ board = genericSTM32F103RE build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py ${common.build_flags} lib_deps = ${common.lib_deps} +lib_ignore = U8glib-HAL + c1921b4 + libf3c + lib066 + Adafruit NeoPixel_ID28 + Adafruit NeoPixel + libf3e + TMC26XStepper +lib_ldf_mode = 1 src_filter = ${common.default_src_filter} monitor_baud = 250000