Me Creator 2 Firmware update

Post Reply
Batfinks
Posts: 5
Joined: Thu Jun 29, 2017 9:51 am

Me Creator 2 Firmware update

Post by Batfinks » Sat Jul 01, 2017 9:22 am

When I use Arduino to attempt to update the firmware I get a compile error:

Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from sketch\Marlin_main.cpp:47:0:

sketch\language.h:36:0: warning: "MACHINE_NAME" redefined

#define MACHINE_NAME "MeCreator 2 "

^

In file included from sketch\Marlin.h:22:0,

from sketch\Marlin_main.cpp:30:

sketch\Configuration.h:6:0: note: this is the location of the previous definition

#define MACHINE_NAME MECREATOR2

^

sketch\Marlin_main.cpp:2678:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]

LCD_MESSAGEPGM(MACHINE_NAME" "MSG_OFF".");

^

In file included from sketch\SdFile.h:27:0,

from sketch\cardreader.h:8,

from sketch\Marlin_main.cpp:44:

SdBaseFile.h:38: error: using typedef-name 'fpos_t' after 'struct'

struct fpos_t {

^

In file included from sketch\Marlin.h:10:0,

from sketch\Marlin_main.cpp:30:

c:\program files (x86)\arduino\hardware\tools\avr\avr\include\stdio.h:950:33: note: 'fpos_t' has a previous declaration here

__extension__ typedef long long fpos_t;

^

exit status 1
using typedef-name 'fpos_t' after 'struct'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
William
Site Admin
Posts: 6340
Joined: Tue Jun 07, 2016 9:38 am

Re: Me Creator 2 Firmware update

Post by William » Tue Jul 04, 2017 2:11 pm

there are some problems in defining name without using string,such as“ #define MACHINE_NAME MECREATOR2 ”which should be replaced by“ #define MACHINE_NAME "MECREATOR2" ”
-Keep your mind and try to test it. :)
-Everything will be fun!-Support all Getech printer.
-You can ask me the questions and I will kindly reply.
-Respect others is the best way you can get help!

Flitterm
Posts: 0
Joined: Thu Nov 02, 2017 6:38 am
Location: Denmark

Re: Me Creator 2 Firmware update

Post by Flitterm » Thu Nov 02, 2017 6:58 am

When trying to install the 3DTouch auto leveling sensor, I had problem to compile the Marlin code on Arduino IDE and got the error:

using typedef-name 'fpos_t' after 'struct'

( GT2560 rev-A board )

I found the solution on the Arduino forum.:
In your Arduino IDE go to

1. Tools > Board > Boards Manager... > Arduino AVR Boards(click on it) > select 1.6.11 from the "Select version" menu > Install
2. After installation completes click the "Close" button

Now you can compile!

The problem is caused by the new compiler version included with Arduino AVR Boards 1.6.12 and later, it is more picky about the bad code that someone wrote. You will need to avoid upgrading to any Arduino AVR Boards version above 1.6.11 until someone fixes the problem in the Marlin code.

Hope this can help others

Post Reply