makerbase-mks / MKS-Robin-E3-E3D

MKS Robin E3 E3D 32Bit Control Board 3D Printer parts with tmc2209 Uart mode driver For Creality Ender 3 CR-10
https://www.aliexpress.com/item/4000781744682.html
GNU General Public License v3.0
118 stars 97 forks source link

error compilation #56

Closed ptitpuma closed 3 years ago

ptitpuma commented 3 years ago

hi i have a trouble with compiling marlin with vs code for a cr10 i've follow every step but it won't compile due to this error : Marlin\src\HAL\STM32F1../../inc/SanityCheck.h:2378:6: error: #error "SERIAL_PORT is set to -1, but the MOTHERBOARD has no native USB support. Set SERIAL_PORT to a valid value for your board."

error "SERIAL_PORT is set to -1, but the MOTHERBOARD has no native USB support. Set SERIAL_PORT to a valid value for your board."

  ^~~~~

In file included from Marlin\src\HAL\STM32F1../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\STM32F1\MarlinSerial.cpp:25:

if i change value to1 it works...

mks-viva commented 3 years ago

Hi! I know what setting causes, you need set

define SERIAL_PORT 1 //For USB

Disable #define SERIAL_PORT_2 1

ptitpuma commented 3 years ago

ok thanks

mks-viva commented 3 years ago

Can it be compiled normally?

ptitpuma commented 3 years ago

Yes with serial port 1... don't know why they say to write -1

mks-viva commented 3 years ago

The first version of marlin is defined as -1, only the latest version will define 1, otherwise it will not compile, Marlin firmware has been adjusted. So, i will close this issues temporarily

ptitpuma commented 3 years ago

hi just another question about that hw should i configurate this to add a tft 35 ?

Niptoc commented 3 years ago

Hello

I also have compilation error for a CR10. I want to use the TFT 35 and I got the error message : `In file included from Marlin\src\HAL\STM32F1../../inc/MarlinConfig.h:49:0, from Marlin\src\HAL\STM32F1\HAL.cpp:30: Marlin\src\HAL\STM32F1../../inc/SanityCheck.h:839:6: error: #error "ADVANCED_PAUSE_FEATURE requires a supported LCD controller (or EMERGENCY_PARSER)."

error "ADVANCED_PAUSE_FEATURE requires a supported LCD controller (or EMERGENCY_PARSER)."`

I have activated the ADVANCED_PAUSE_FEATURE to be able to use the filament end detector.

Do anyone encounter the same issue?