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: 'ONBOARD_SD_CS_PIN' was not declared when enabling sd connection to onboard #78

Closed ghost closed 3 years ago

ghost commented 3 years ago

(New to github, sorry if this post is not necessary). I just bought a mks robin e3d v1.1 and I try to compile the version of marlin provided by mks : https://github.com/makerbase-mks/MKS-Robin-E3-E3D/tree/master/firmware/V1.1/Marlin-2.0.6.1_for_ender3_TMC2209

I just changed in Configuration.h : Disable #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER Enable #define CR10_STOCKDISPLAY

and in Configuration_adv.h : Enable #define SDCARD_CONNECTION ONBOARD

I get the "ONBOARD_SD_CS_PIN not declared" error when changing sd connection from lcd to onboard.

When I add #define ONBOARD_SD_SS_PIN SS_PIN in pins_MKS_ROBIN_E3.h file I get the same error. I tried #define ONBOARD_SD_CS_PIN SS_PIN , it compile fine but then when updating it get stuck at 100%.

ghost commented 3 years ago

I figured my mistake. I renamed firmware.bin to Robin_e3.bin and I didn't see there was already a file named Robin_e3.bin in the .pio folder.

The line #define ONBOARD_SD_CS_PIN SD_SS_PIN works for the error I was getting though.