Skip to content

[BUG] Can't compile anything with Build Flag "-DLCD_BTT_TFT" #168

@gfacek

Description

@gfacek

Bug Description

I tried to compile marlin-lux-marlin-2.0.9.2 with the following settings in luxuri.ini:

[env:D2P_OCTOPUS_Driver2209BTT_OpticalY_BLTouch_LCD_BTT_TFT]
platform           = ${common_stm32.platform}
extends            = stm32_variant
board              = marlin_BigTree_Octopus_v1
board_build.offset = 0x8000
build_flags       = ${stm32_variant.build_flags} -DMachineTLD2P -DOCTOPUS -DDriver2209BTT -DOpticalY -DBL_Touch -DLCD_BTT_TFT -DSTM32F446_5VX -DUSE_USB_HS_IN_FS

The compilation failed with the following errors:
Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:49:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:65:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:81:29: error: token "{" is not valid in preprocessor expressions

Bug Timeline

No response

Expected behavior

I expected to compile the firmware.bin regarding the selected settings.

Actual behavior

The firmware-file did not compile. Instead I got the following error:
Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:49:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:65:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:81:29: error: token "{" is not valid in preprocessor expressions

Steps to Reproduce

  1. Add the following configuration in luxuri.ini:
[env:D2P_OCTOPUS_Driver2209BTT_OpticalY_BLTouch_LCD_BTT_TFT]
platform           = ${common_stm32.platform}
extends            = stm32_variant
board              = marlin_BigTree_Octopus_v1
board_build.offset = 0x8000
build_flags       = ${stm32_variant.build_flags} -DMachineTLD2P -DOCTOPUS -DDriver2209BTT -DOpticalY -DBL_Touch -DLCD_BTT_TFT -DSTM32F446_5VX -DUSE_USB_HS_IN_FS
  1. Select the configuration in platformio.ini as default env:
    default_envs = D2P_OCTOPUS_Driver2209BTT_OpticalY_BLTouch_LCD_BTT_TFT
  2. Compile

Version of Marlin Firmware

marlin-lux-2.0.9.2

Printer model

Tenlog Hands 2

Electronics

BTT Octopus Board and BTT TFT35

Add-ons

No response

Bed Leveling

None

Your Slicer

Cura

Host Software

OctoPrint

Additional information & file uploads

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions