makerbase-mks / MKS-Robin

MKS Robin is a powerful 32-bit 3D printer control board with STM32F103ZET6 . Support Marlin2.0. Support MKS Robin TFT24/28/32... Screens. The motherboard integrates 5 AXIS interface, hot bed, 2 heating heads, 3 NTC100K, 2 MAX31855.Support MKS Robin WIFI for cloud printing.Supports firmware update by SD card…
https://es.aliexpress.com/item/32757129463.html?spm=a219c.12010612.8148356.9.5fc165f4oDUfFM
131 stars 129 forks source link

Serial port issue with Robin Lite #205

Open jaymcd opened 3 years ago

jaymcd commented 3 years ago

I am getting errors with serial ports on compile --

In file included from Marlin\src\HAL\STM32\MarlinSPI.h:24, from Marlin\src\HAL\STM32\MarlinSPI.cpp:26: Marlin\src\HAL\STM32\HAL.h:65:4: error: #error "SERIAL_PORT must be from 1 to 6. You can also use -1 if the board supports Native USB." 65 | #error "SERIAL_PORT must be from 1 to 6. You can also use -1 if the board supports Native USB."

Not sure if this is a vscode issue or a platform issue or a board/library issue. It was obviously working before as the default config seems to be for -1 or 0. I have tried both with no success. It will compile if I change to value 1 -6 ....

fjbold1 commented 2 years ago

I was able to use -1, not at first but after enabling native usb in the adv file.

k2ksk2k commented 1 year ago

According to MKS-Robin, you can try the settings "#define SERIAL_PORT 3" and "#define SERIAL_PORT_2 1".