MarlinFirmware / 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.
https://marlinfw.org
GNU General Public License v3.0
16.17k stars 19.21k forks source link

[BUG] compilation for SKR E3 V3 mini #27189

Closed nzodevfivem closed 2 months ago

nzodevfivem commented 2 months ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

I can't compile my firmware with my configurations, I even tried with the basic configuration

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

Marlin-BUGFIX-2.1.X

Printer model

Creality Ender-3

Electronics

Bigtreetech SKR E3 V3 mini

LCD/Controller

Bigtreetech TFT 35

Other add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

Additional information & file uploads

config Files:
Marlin.zip

ERROR:

details:

```prolog * Executing task: C:\Users\devie\.platformio\penv\Scripts\platformio.exe run Processing STM32G0B1RE_btt (platform: ststm32@17.1.0; board: marlin_STM32G0B1RE; framework: arduino) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Verbose mode can be enabled via `-v, --verbose` option In file included from c:\marlin-bugfix-2.1.x\marlin\src\inc\MarlinConfigPre.h:39, from c:\marlin-bugfix-2.1.x\marlin\src\inc\marlinconfig.h:28, from buildroot/share/PlatformIO/scripts/common-dependencies.h:29: c:\marlin-bugfix-2.1.x\marlin\configuration.h:284:11: error: missing binary operator before token "(" 284 | #if EITHER(PARKING_EXTRUDER, MAGNETIC_PARKING_EXTRUDER) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration.h:986:11: error: missing binary operator before token "(" 986 | #if EITHER(MORGAN_SCARA, MP_SCARA) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration.h:1787:11: error: missing binary operator before token "(" 1787 | #if EITHER(MIN_SOFTWARE_ENDSTOPS, MAX_SOFTWARE_ENDSTOPS) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration.h:1989:11: error: missing binary operator before token "(" 1989 | #if EITHER(AUTO_BED_LEVELING_LINEAR, AUTO_BED_LEVELING_BILINEAR) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration.h:3035:11: error: missing binary operator before token "(" 3035 | #if EITHER(ANYCUBIC_LCD_I3MEGA, ANYCUBIC_LCD_CHIRON) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration.h:3323:11: error: missing binary operator before token "(" 3323 | #if EITHER(RGB_LED, RGBW_LED) | ^ In file included from c:\marlin-bugfix-2.1.x\marlin\src\inc\MarlinConfigPre.h:56: c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:305:11: error: missing binary operator before token "(" 305 | #if BOTH(ADAPTIVE_FAN_SLOWING, PIDTEMP) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1089:11: error: missing binary operator before token "(" 1089 | #if EITHER(INPUT_SHAPING_X, INPUT_SHAPING_Y) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1325:11: error: missing binary operator before token "(" 1325 | #if EITHER(DIGIPOT_MCP4018, DIGIPOT_MCP4451) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1382:28: error: missing binary operator before token "(" 1382 | #if HAS_BED_PROBE && EITHER(HAS_MARLINUI_MENU, HAS_TFT_LVGL_UI) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1437:11: error: missing binary operator before token "(" 1437 | #if EITHER(HAS_DISPLAY, DWIN_LCD_PROUI) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1495:11: error: missing binary operator before token "(" 1495 | #if BOTH(M73_REPORT, SDSUPPORT) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:1501:26: error: missing binary operator before token "(" 1501 | #if HAS_DISPLAY && EITHER(SDSUPPORT, SET_PROGRESS_MANUALLY) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2149:11: error: missing binary operator before token "(" 2149 | #if EITHER(AUTO_BED_LEVELING_3POINT, AUTO_BED_LEVELING_UBL) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2184:11: error: missing binary operator before token "(" 2184 | #if EITHER(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2192:9: error: missing binary operator before token "(" 2192 | #if BOTH(AUTO_BED_LEVELING_UBL, EEPROM_SETTINGS) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2306:11: error: missing binary operator before token "(" 2306 | #if EITHER(ARC_SUPPORT, BEZIER_CURVE_SUPPORT) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:2394:9: error: missing binary operator before token "(" 2394 | #if BOTH(SDSUPPORT, DIRECT_STEPPING) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:3174:13: error: missing binary operator before token "(" 3174 | #if EITHER(SENSORLESS_HOMING, SENSORLESS_PROBING) | ^ c:\marlin-bugfix-2.1.x\marlin\configuration_adv.h:3336:11: error: missing binary operator before token "(" 3336 | #if EITHER(SPINDLE_FEATURE, LASER_FEATURE) | ^ Error: Failed to parse Marlin features. See previous error messages. ===================================================================================== [FAILED] Took 4.87 seconds ===================================================================================== Environment Status Duration --------------- -------- ------------ STM32G0B1RE_btt FAILED 00:00:04.870 =============================================================================== 1 failed, 0 succeeded in 00:00:04.870 =============================================================================== * The terminal process "C:\Users\devie\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it. ```

platformio.ini:

```ini # # Marlin Firmware # PlatformIO Configuration File # # For detailed documentation with EXAMPLES: # # https://docs.platformio.org/en/latest/projectconf/index.html # # Automatic targets - enable auto-uploading #targets = upload [platformio] src_dir = Marlin boards_dir = buildroot/share/PlatformIO/boards default_envs = STM32G0B1RE_btt include_dir = Marlin extra_configs = Marlin/config.ini ini/avr.ini ini/due.ini ini/esp32.ini ini/features.ini ini/hc32.ini ini/lpc176x.ini ini/native.ini ini/samd21.ini ini/samd51.ini ini/stm32-common.ini ini/stm32f0.ini ini/stm32f1-maple.ini ini/stm32f1.ini ini/stm32f4.ini ini/stm32f7.ini ini/stm32h7.ini ini/stm32g0.ini ini/teensy.ini ini/renamed.ini # # The 'common' section applies to most Marlin builds. # # By default platformio build will abort after 5 errors. # Remove '-fmax-errors=5' from build_flags below to see all. # [common] build_flags = -g3 -D__MARLIN_FIRMWARE__ -DNDEBUG -fmax-errors=5 extra_scripts = pre:buildroot/share/PlatformIO/scripts/configuration.py pre:buildroot/share/PlatformIO/scripts/common-dependencies.py pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py pre:buildroot/share/PlatformIO/scripts/preflight-checks.py post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py lib_deps = default_src_filter = + - - ; LCDs and Controllers - - - - - - - - - - ; Marlin HAL - + - - - - ; Features and G-Codes - - - - - - - - - - - - - - - ; Library Code - - - - - - - ; Modules - - ; Media Support - ; ; Minimal Requirements ; + + + + + + + + + + + + + + + + + + + + + + + + + + + # # Default values apply to all 'env:' prefixed environments # [env] framework = arduino extra_scripts = ${common.extra_scripts} build_flags = ${common.build_flags} lib_deps = ${common.lib_deps} monitor_speed = 250000 monitor_eol = LF monitor_echo = yes monitor_filters = colorize, time, send_on_enter # # Just print the dependency tree # [env:include_tree] platform = atmelavr board = megaatmega2560 build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__ build_src_filter = + ```

thisiskeithb commented 2 months ago

You're not using the latest bugfix-2.1.x and/or have copied an old config in since BOTH() and EITHER() macros were removed over a year ago.


This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

nzodevfivem commented 2 months ago

Hello, how can you explain that even with a stock configuration of the latest version of marlin available on your site. Taking the config and the marlin that you indicate, I cannot compile? You should know that the files and error that I gave you, I already managed to compile them 3 months ago and that it works

thisiskeithb commented 2 months ago

Did you test the latest bugfix-2.1.x code? Yes, and the problem still exists.

Version of Marlin Firmware Marlin-BUGFIX-2.1.X

The configs you attached have: #define CONFIGURATION_H_VERSION 02010202

This is not the latest bugfix-2.1.x. You cannot mix & match configs/Marlin version.

Neither Marlin bugfix-2.1.x from https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.1.x or bugfix-2.1.x Configurations from https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.1.x contain these macros.

You will need to manually transfer your old config settings to the latest bugfix-2.1.x version or use the latest bugfix-2.1.x configs from the same config directory you have in your config (#define CONFIG_EXAMPLES_DIR "config/examples/Creality/Ender-3/BigTreeTech SKR Mini E3 3.0")


This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources: