Jyers / 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.
http://marlinfw.org
GNU General Public License v3.0
2.14k stars 387 forks source link

Unable to compile #1966

Open CasperJohansen opened 2 years ago

CasperJohansen commented 2 years ago

Log.txt

Basically unchanged e3v2 BL-touch3x3-highspeed configuration file, pasted into marlin folder.

The file producing the errors comes from Marlin>src>inc>SanityCheck.h at line 1586 & 2019.

Using PlatformIO and following BV3D tutorial on yt.

[.pio\build\STM32F103RE_creality_maple\src\src\HAL\STM32F1\dogm\u8g_com_stm32duino_swspi.cpp.o] Error 1 [.pio\build\STM32F103RE_creality_maple\src\src\HAL\STM32F1\eeprom_flash.cpp.o] Error 1 [.pio\build\STM32F103RE_creality_maple\src\src\HAL\STM32F1\eeprom_if_iic.cpp.o] Error 1 [.pio\build\STM32F103RE_creality_maple\src\src\HAL\STM32F1\eeprom_sdcard.cpp.o] Error 1 *** [.pio\build\STM32F103RE_creality_maple\src\src\HAL\STM32F1\eeprom_wired.cpp.o] Error 1 In file included from Marlin\src\HAL\STM32F1../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\STM32F1\timers.h:28, from Marlin\src\HAL\STM32F1\fast_pwm.cpp:28: Marlin\src\HAL\STM32F1../../inc/SanityCheck.h:1586:53: error: operator '&&' has no right operand

if ENABLED(BLTOUCH_HS_MODE) && BLTOUCH_HS_MODE == 0

                                                 ^~

Marlin\src\HAL\STM32F1../../inc/SanityCheck.h:2019:6: error: #error "FAN_SOFT_PWM is required for your board. Enable it to continue."

error "FAN_SOFT_PWM is required for your board. Enable it to continue."

(First time using github - sorry if issue reporting is lacking)

Gately-Wells commented 2 years ago

Error message says it all. Enable "FAN_SOFT_PWM" in your code.

Called from line "#error "FAN_SOFT_PWM is required for your board. Enable it to continue.". You may see a few of these kinds of errors.