makerbase-mks / MKS-Robin-Nano-V3.X

Robin nano V3 is an upgraded version of Robin Nano V2.0. The upgrade changes are quite large, including upgrading the MCU to the M4 core, and adding support for USB disk.
GNU General Public License v3.0
134 stars 63 forks source link

Motherboard define error nano robin v3.1 marlin 2.1.2 #153

Open spikey1973 opened 1 year ago

spikey1973 commented 1 year ago

I am trying to compile marlin 2.1.2 for my new nano robin v3.1

Getting 2 errors:

1) boards.h = "operator '==' has no right operand",

define _MB1(B) (defined(BOARD##B) && MOTHERBOARD==BOARD_##B)

2) pins.h = "#error \"MOTHERBOARD not defined! Use '#define MOTHERBOARD BOARD_...' in Configuration.h.\"",

I did defined the board in configuration.h as

ifndef MOTHERBOARD

define BOARD_MKS_ROBIN_NANO_V3_1

endif

I am assuming this to be an error in my use of default_envs, but I could be wrong ofcourse.

default_envs = mks_robin_nano_v3_usb_flash_drive_msc

in platformio.ini, which i got this from this github page: https://github.com/makerbase-mks/MKS-Robin-Nano-V3.X/wiki/Marlin_firmware

any suggestions why this goes wrong, how to solve?

spikey1973 commented 1 year ago

I changed the #define BOARD_MKS_ROBIN_NANO_V3_1 to MOTHERBOARD BOARD_MKS_ROBIN_NANO_V3

now it starts compiling,but it gives sanity check errors, three of them related to static assertion. I googled the issue and found relations with board pins,which could be becauseof the change in the defined boardfrom 3.1 to3 to be clear i am using the 3.1 board.

belowiwill post the errors (total of 5, 3 of them obviously related to the static assertion, but iwill post all, just incase there is a hidden (for me) relation.

Configuration.h", 1) "message": "expected primary-expression before ',' token",

SanityCheck.h", 2) "message": "static assertion failed: ADVANCED_PAUSE_FEATURE is required to use M600 with FILAMENT_RUNOUT_SENSOR.",

3) "message": "#error \"DELTA_CALIBRATION_MENU requires an LCD Controller.\"",

4) "message": "non-constant condition for static assertion",

5) "message": static assertion failed: DEFAULT_AXIS_STEPS_PER_UNIT requires X Y Z E elements.