I copied the Configuration.h
and Configuration_adv.h
from \config\examples\FYSETC\Cheetah\BLTouch\
to \Marlin\
and then I got this error:
In file included from c:\m\marlin\src\inc\marlinconfig.h:38:0,
from Marlin\src\HAL\HAL_STM32F1\HAL.cpp:31:
c:\m\marlin\src\inc\SanityCheck.h:384:4: error: #error "POWER_SUPPLY is now obsolete. Please remove it from Configuration.h."
#error "POWER_SUPPLY is now obsolete. Please remove it from Configuration.h."
^~~~~
In file included from c:\m\marlin\src\inc\marlinconfig.h:38:0,
from Marlin\src\HAL\HAL_STM32F1\HAL_Servo_STM32F1.cpp:26:
c:\m\marlin\src\inc\SanityCheck.h:384:4: error: #error "POWER_SUPPLY is now obsolete. Please remove it from Configuration.h."
#error "POWER_SUPPLY is now obsolete. Please remove it from Configuration.h."
^~~~~
So I comented out this part:
#define POWER_SUPPLY 0
#if POWER_SUPPLY > 0
// Enable this option to leave the PSU off at startup.
// Power to steppers and heaters will need to be turned on with M80.
//#define PS_DEFAULT_OFF
//#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin
#if ENABLED(AUTO_POWER_CONTROL)
#define AUTO_POWER_FANS // Turn on PSU if fans need power
#define AUTO_POWER_E_FANS
#define AUTO_POWER_CONTROLLERFAN
#define AUTO_POWER_CHAMBER_FAN
//#define AUTO_POWER_E_TEMP 50 // (°C) Turn on PSU over this temperature
//#define AUTO_POWER_CHAMBER_TEMP 30 // (°C) Turn on PSU over this temperature
#define POWER_TIMEOUT 30
#endif
#endif
and the compilation is ok now. I get these 3 warnings now:
In file included from Marlin\src\HAL\HAL_STM32F1\HAL_spi_STM32F1.cpp:36:0:
C:\users\melld\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\SPI\src/SPI.h:171:15: warning: '_spi3_this' defined but not used [-Wunused-variable]
static void (*_spi3_this);
^~~~~~~~~~
C:\users\melld\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\SPI\src/SPI.h:168:15: warning: '_spi2_this' defined but not used [-Wunused-variable]
static void (*_spi2_this);
^~~~~~~~~~
C:\users\melld\.platformio\packages\framework-arduinoststm32-maple\STM32F1\libraries\SPI\src/SPI.h:165:15: warning: '_spi1_this' defined but not used [-Wunused-variable]
static void (*_spi1_this);
^~~~~~~~~~