Welcome! Log In Create A New Profile

Advanced

Marlin G3D issue - code will not compile

Posted by Pat McD 
Marlin G3D issue - code will not compile
October 26, 2014 09:31PM
Added an LCD, SD and rotary encoder connected to the right pins as per the Wiki on G3D.

[reprap.org]

Modified the marlin firmware, just one line, removed the quotes so that this is now processed by firmware;-

#define G3D_PANEL

Arduino will not compile, returns a message;-

"ultralcd.cpp:32: error: initializer-string for array of chars is too long"

This appears to be the WELCOME_MSG txt, which isn't initilized anywhere?

char lcd_status_message[LCD_WIDTH+1] = WELCOME_MSG;

Also, if I enable another option instead of G3D_PANEL, I get the same result, which would appear to be some other variable needs to be setup.

Help, it's definitely a problem I'm having with Marlin.
Re: Marlin G3D issue - code will not compile
November 14, 2014 08:30PM
Had a similar issue. with 'ultralcd.cpp:32: error: initializer-string for array of chars is too long'

If you have defined 'CUSTOM_MENDEL_NAME' in Configuration.h, try undefining it. Read on for more.

WELCOME_MSG is defined in language.h using the MACHINE_NAME value, which I assume can be derived from CUSTOM_MENDEL_NAME
If you wish to use CUSTOM_MENDEL_NAME, a safe max value may be 9 characters (should not break compilation for a 16x2) or 13 characters (should not break compilation for a 20x4)
Personally, I only tested this with LANGUAGE_CHOICE 1 and REPRAP_DISCOUNT_SMART_CONTROLLER (20x4). 14 character CUSTOM_MENDEL_NAME broke compilation. 13 did not
Sorry, only registered users may post in this forum.

Click here to login