Skip to content

[BUG] LCD_SERIAL_PORT not being properly set when using DWIN_CREALITY_LCD on BOARD_BTT_SKR_MINI_E3_V3_0 #23586

@chrisnuzum

Description

@chrisnuzum

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

Yes, and the problem still exists.

Bug Description

I installed the new BigTreeTech SKR mini E3 V3.0 (STM32G0B1RET6) onto my Ender 3 V2. This board was added in the 2.0.9.3 release. #23283

I modified the ribbon cable to be able to use the stock DWIN LCD, and also changed the relevant pins in pins_BTT_SKR_MINI_E3_V3_0.h.

I still was unable to get the LCD to display anything. I figured it had something to do with a SERIAL_PORT being set wrong, but it took me a while to find the actual cause was just that this board was never added to line 512 of Conditionals_LCD.h, which defines the LCD_SERIAL_PORT.

// E3V2 extras
#if HAS_DWIN_E3V2 || IS_DWIN_MARLINUI
  #define SERIAL_CATCHALL 0
  #ifndef LCD_SERIAL_PORT
    #if MB(BTT_SKR_MINI_E3_V1_0, BTT_SKR_MINI_E3_V1_2, BTT_SKR_MINI_E3_V2_0, BTT_SKR_E3_TURBO) //HERE
      #define LCD_SERIAL_PORT 1
    #else
      #define LCD_SERIAL_PORT 3 // Creality 4.x board
    #endif
  #endif
  #define HAS_LCD_BRIGHTNESS 1
  #define LCD_BRIGHTNESS_MAX 250
#endif

https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.0.x/Marlin/src/inc/Conditionals_LCD.h#L512

So, in summary, line 512 of Conditionals_LCD.h is currently:

    #if MB(BTT_SKR_MINI_E3_V1_0, BTT_SKR_MINI_E3_V1_2, BTT_SKR_MINI_E3_V2_0, BTT_SKR_E3_TURBO)

but should be:

    #if MB(BTT_SKR_MINI_E3_V1_0, BTT_SKR_MINI_E3_V1_2, BTT_SKR_MINI_E3_V2_0, BTT_SKR_MINI_E3_V3_0, BTT_SKR_E3_TURBO)

To note, this is the same area of code relevant to this bug which I also ran into: #22299

Bug Timeline

No response

Expected behavior

No response

Actual behavior

No response

Steps to Reproduce

No response

Version of Marlin Firmware

bugfix-2.0.x

Printer model

Creality Ender 3 V2

Electronics

BigTreeTech SKR mini E3 V3.0

Add-ons

No response

Bed Leveling

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions