makerbase-mks / Mks-Robin-Nano-Marlin2.0-Firmware

The firmware of Mks Robin Nano, based on Marlin-2.0.x, adding the color GUI.
GNU General Public License v3.0
261 stars 285 forks source link

Build fail for Makerbase Nano v 1.2 with TFT35 V 1.0 #158

Open Bighoneypot opened 3 years ago

Bighoneypot commented 3 years ago

Platformio don't build this repo for my MKS Nano v 1.2 with TFT35 V 1.0

Description Error

expression must have a constant value -- cannot call non-constexpr function "strstr" (declared at line 48 of "C:\Users\gabri.platformio\packages\toolchain-gccarmnoneeabi\arm-none-eabi\include\string.h")

error "TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or XSERIAL(RX|TX)_PIN."

{ "resource": "/c:/Users/gabri/OneDrive/Documents/REPO/Mks-Robin-Nano-Marlin2.0-Firmware/Marlin/src/inc/SanityCheck.h", "owner": "C/C++", "code": "35", "severity": 8, "message": "#error directive: \"TMC2208 or TMC2209 on X requires X_HARDWARE_SERIAL or XSERIAL(RX|TX)_PIN.\"", "source": "C/C++", "startLineNumber": 2467, "startColumn": 4, "endLineNumber": 2467, "endColumn": 9 }

Steps to Reproduce

Clone this repo : https://github.com/makerbase-mks/Mks-Robin-Nano-Marlin2.0-Firmware

Build config: platformio.ini:

default_envs = mks_robin_nano35

Configuation.h:

define SERIAL_PORT 3

define MKS_ROBIN_TFT35

define MOTHERBOARD BOARD_MKS_ROBIN_NANO

define TFT_LVGL_UI

define TOUCH_SCREEN

and uncomment this line #define MKS_ROBIN_TFT35 in Configuration.h

and comment this line:

// 480x320, 3.5", SPI Display From MKS // Normally used in MKS Robin Nano V2 // //#define MKS_TS35_V2_0

Additional Information

Asta7180 commented 8 months ago

OK. Now I see :)

This error is generated by wrong homing :)

I suppose you need to change homing direction too. in default: #define Y_HOME_DIR 1

after change endstop should look

define Y_HOME_DIR -1

Awesome! Thanks I didn't look at this line