bigtreetech / BIGTREETECH-SKR-V1.3

32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required
1k stars 1.15k forks source link

Marlin compilation error for skr v1.4 turbo with Ender 3 v2 screen DWIN_CREALITY_LCD #444

Open Azhaguvel19 opened 3 years ago

Azhaguvel19 commented 3 years ago

I have replaced my ender 3 v2 board with skr V1.4 turbo and using the same ender 3 v2 display but I am not able to compile the marlin code for it. I am getting the following errors. It compiles fine if I comment #define DWIN_CREALITY_LCD and enable #define REPRAP_DISCOUNT_SMART_CONTROLLER. It compiles and the board is working with rerap discount controller which I had as a spare.

Marlin\src\lcd\dwin\rotary_encoder.cpp:52:9: error: 'BEEPER_PIN' was not declared in this scope Marlin\src\lcd\dwin\rotary_encoder.h:46:34: error: 'BTN_EN1' was not declared in this scope Marlin\src\lcd\dwin\rotary_encoder.h:46:34: error: 'BTN_EN2' was not declared in this scope Marlin\src\lcd\dwin\rotary_encoder.h:46:34: error: 'BTN_ENC' was not declared in this scope Marlin\src\lcd\dwin\dwin.cpp:2024:11: error: 'strcat_P' was not declared in this scope; did you mean 'strcat'? Marlin\src\lcd\dwin\dwin.cpp:2140:5: error: 'buzzer' was not declared in this scope Marlin\src\lcd\dwin\dwin.cpp:2145:5: error: 'buzzer' was not declared in this scope

image

output run_output.txt

Config which is having the above compile error Marlin.zip

config folder which has rerap discount lcd compiles fine. Marlin.zip

Azhaguvel19 commented 3 years ago

Seems this is because skr v1.4 board pins file does not have any Configs for DWIN_CREALITY_LCD. Can you fix this please.

Azhaguvel19 commented 3 years ago

tried this then I get the str function error.

image

image

Azhaguvel19 commented 3 years ago

If I change that then I end up with this error

image