Firmware upload error

Hello,

After building the printer the past days, i thought it was time to upload the latest firmware.

Did everything according to the manual.

download arduino software,
Install ftdi drivers
download lates dual head firmware.
Put the jumper on the pins.

Select arduino mega
select com port
hit the upload button.

Then i get this error:

[color=#0080FF]Arduino: 1.6.10 (Windows 8.1), Board:“Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

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

             from sketch\BlinkM.cpp:5:

sketch\pins.h:401:0: warning: “FAN_PIN” redefined

 #define FAN_PIN            8 

^

sketch\pins.h:396:0: note: this is the location of the previous definition

 #define FAN_PIN            4 // IO pin. Buffer needed

^

sketch\pins.h:419:0: warning: “HEATER_2_PIN” redefined

 #define HEATER_2_PIN       6   //BED

^

sketch\pins.h:414:0: note: this is the location of the previous definition

#define HEATER_2_PIN -1

^

sketch\pins.h:459:0: warning: “BEEPER” redefined

     #define BEEPER -1   // Beeper on AUX-4

^

sketch\pins.h:432:0: note: this is the location of the previous definition

   #define BEEPER 33   // Beeper on AUX-4

^

sketch\pins.h:461:0: warning: “LCD_PINS_RS” redefined

     #define LCD_PINS_RS 27 

^

sketch\pins.h:434:0: note: this is the location of the previous definition

   #define LCD_PINS_RS 16 

^

sketch\pins.h:462:0: warning: “LCD_PINS_ENABLE” redefined

     #define LCD_PINS_ENABLE 29

^

sketch\pins.h:435:0: note: this is the location of the previous definition

   #define LCD_PINS_ENABLE 17

^

sketch\pins.h:463:0: warning: “LCD_PINS_D4” redefined

     #define LCD_PINS_D4 37

^

sketch\pins.h:436:0: note: this is the location of the previous definition

   #define LCD_PINS_D4 23

^

sketch\pins.h:464:0: warning: “LCD_PINS_D5” redefined

     #define LCD_PINS_D5 35 

^

sketch\pins.h:437:0: note: this is the location of the previous definition

   #define LCD_PINS_D5 25 

^

sketch\pins.h:465:0: warning: “LCD_PINS_D6” redefined

     #define LCD_PINS_D6 33

^

sketch\pins.h:438:0: note: this is the location of the previous definition

   #define LCD_PINS_D6 27

^

sketch\pins.h:466:0: warning: “LCD_PINS_D7” redefined

     #define LCD_PINS_D7 31

^

sketch\pins.h:439:0: note: this is the location of the previous definition

   #define LCD_PINS_D7 29

^

sketch\pins.h:469:0: warning: “BTN_EN1” redefined

     #define BTN_EN1 17

^

sketch\pins.h:442:0: note: this is the location of the previous definition

   #define BTN_EN1 37

^

sketch\pins.h:470:0: warning: “BTN_EN2” redefined

     #define BTN_EN2 16

^

sketch\pins.h:443:0: note: this is the location of the previous definition

   #define BTN_EN2 35

^

sketch\pins.h:471:0: warning: “BTN_ENC” redefined

     #define BTN_ENC 23  //the click

^

sketch\pins.h:444:0: note: this is the location of the previous definition

   #define BTN_ENC 31  //the click

^

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

             from sketch\ConfigurationStore.cpp:1:

sketch\pins.h:401:0: warning: “FAN_PIN” redefined

 #define FAN_PIN            8 

^

sketch\pins.h:396:0: note: this is the location of the previous definition

 #define FAN_PIN            4 // IO pin. Buffer needed

^

sketch\pins.h:419:0: warning: “HEATER_2_PIN” redefined

 #define HEATER_2_PIN       6   //BED

^

sketch\pins.h:414:0: note: this is the location of the previous definition

#define HEATER_2_PIN -1

^

sketch\pins.h:459:0: warning: “BEEPER” redefined

     #define BEEPER -1   // Beeper on AUX-4

^

sketch\pins.h:432:0: note: this is the location of the previous definition

   #define BEEPER 33   // Beeper on AUX-4

^

sketch\pins.h:461:0: warning: “LCD_PINS_RS” redefined

     #define LCD_PINS_RS 27 

^

sketch\pins.h:434:0: note: this is the location of the previous definition

   #define LCD_PINS_RS 16 

^

sketch\pins.h:462:0: warning: “LCD_PINS_ENABLE” redefined

     #define LCD_PINS_ENABLE 29

^

sketch\pins.h:435:0: note: this is the location of the previous definition

   #define LCD_PINS_ENABLE 17

^

sketch\pins.h:463:0: warning: “LCD_PINS_D4” redefined

     #define LCD_PINS_D4 37

^

sketch\pins.h:436:0: note: this is the location of the previous definition

   #define LCD_PINS_D4 23

^

sketch\pins.h:464:0: warning: “LCD_PINS_D5” redefined

     #define LCD_PINS_D5 35 

^

sketch\pins.h:437:0: note: this is the location of the previous definition

   #define LCD_PINS_D5 25 

^

sketch\pins.h:465:0: warning: “LCD_PINS_D6” redefined

     #define LCD_PINS_D6 33

^

sketch\pins.h:438:0: note: this is the location of the previous definition

   #define LCD_PINS_D6 27

^

sketch\pins.h:466:0: warning: “LCD_PINS_D7” redefined

     #define LCD_PINS_D7 31

^

sketch\pins.h:439:0: note: this is the location of the previous definition

   #define LCD_PINS_D7 29

^

sketch\pins.h:469:0: warning: “BTN_EN1” redefined

     #define BTN_EN1 17

^

sketch\pins.h:442:0: note: this is the location of the previous definition

   #define BTN_EN1 37

^

sketch\pins.h:470:0: warning: “BTN_EN2” redefined

     #define BTN_EN2 16

^

sketch\pins.h:443:0: note: this is the location of the previous definition

   #define BTN_EN2 35

^

sketch\pins.h:471:0: warning: “BTN_ENC” redefined

     #define BTN_ENC 23  //the click

^

sketch\pins.h:444:0: note: this is the location of the previous definition

   #define BTN_ENC 31  //the click

^

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

             from sketch\thermistortables.h:4,

             from sketch\Configuration.h:733,

             from C:\Users\Walter\Downloads\3D print\VERTEX 8400\Software\vertex-m1-v1.4-h2\vertex-m1-v1.4-h2\Marlin\Marlin.ino:33:

sketch\pins.h:401:0: warning: “FAN_PIN” redefined

 #define FAN_PIN            8 

^

sketch\pins.h:396:0: note: this is the location of the previous definition

 #define FAN_PIN            4 // IO pin. Buffer needed

^

sketch\pins.h:419:0: warning: “HEATER_2_PIN” redefined

 #define HEATER_2_PIN       6   //BED

^

sketch\pins.h:414:0: note: this is the location of the previous definition

#define HEATER_2_PIN -1

^

sketch\pins.h:459:0: warning: “BEEPER” redefined

     #define BEEPER -1   // Beeper on AUX-4

^

sketch\pins.h:432:0: note: this is the location of the previous definition

   #define BEEPER 33   // Beeper on AUX-4

^

sketch\pins.h:461:0: warning: “LCD_PINS_RS” redefined

     #define LCD_PINS_RS 27 

^

sketch\pins.h:434:0: note: this is the location of the previous definition

   #define LCD_PINS_RS 16 

^

sketch\pins.h:462:0: warning: “LCD_PINS_ENABLE” redefined

     #define LCD_PINS_ENABLE 29

^

sketch\pins.h:435:0: note: this is the location of the previous definition

   #define LCD_PINS_ENABLE 17

^

sketch\pins.h:463:0: warning: “LCD_PINS_D4” redefined

     #define LCD_PINS_D4 37

^

sketch\pins.h:436:0: note: this is the location of the previous definition

   #define LCD_PINS_D4 23

^

sketch\pins.h:464:0: warning: “LCD_PINS_D5” redefined

     #define LCD_PINS_D5 35 

^

sketch\pins.h:437:0: note: this is the location of the previous definition

   #define LCD_PINS_D5 25 

^

sketch\pins.h:465:0: warning: “LCD_PINS_D6” redefined

     #define LCD_PINS_D6 33

^

sketch\pins.h:438:0: note: this is the location of the previous definition

   #define LCD_PINS_D6 27

^

sketch\pins.h:466:0: warning: “LCD_PINS_D7” redefined

     #define LCD_PINS_D7 31

^

sketch\pins.h:439:0: note: this is the location of the previous definition

   #define LCD_PINS_D7 29

^

sketch\pins.h:469:0: warning: “BTN_EN1” redefined

     #define BTN_EN1 17

^

sketch\pins.h:442:0: note: this is the location of the previous definition

   #define BTN_EN1 37

^

sketch\pins.h:470:0: warning: “BTN_EN2” redefined

     #define BTN_EN2 16

^

sketch\pins.h:443:0: note: this is the location of the previous definition

   #define BTN_EN2 35

^

sketch\pins.h:471:0: warning: “BTN_ENC” redefined

     #define BTN_ENC 23  //the click

^

sketch\pins.h:444:0: note: this is the location of the previous definition

   #define BTN_ENC 31  //the click

^

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

             from sketch\MarlinSerial.cpp:23:

sketch\pins.h:401:0: warning: “FAN_PIN” redefined

 #define FAN_PIN            8 

^

sketch\pins.h:396:0: note: this is the location of the previous definition

 #define FAN_PIN            4 // IO pin. Buffer needed

^

sketch\pins.h:419:0: warning: “HEATER_2_PIN” redefined

 #define HEATER_2_PIN       6   //BED

^

sketch\pins.h:414:0: note: this is the location of the previous definition

#define HEATER_2_PIN -1

^

sketch\pins.h:459:0: warning: “BEEPER” redefined

     #define BEEPER -1   // Beeper on AUX-4

^

sketch\pins.h:432:0: note: this is the location of the previous definition

   #define BEEPER 33   // Beeper on AUX-4

^

sketch\pins.h:461:0: warning: “LCD_PINS_RS” redefined

     #define LCD_PINS_RS 27 

^

sketch\pins.h:434:0: note: this is the location of the previous definition

   #define LCD_PINS_RS 16 

^

sketch\pins.h:462:0: warning: “LCD_PINS_ENABLE” redefined

     #define LCD_PINS_ENABLE 29

^

sketch\pins.h:435:0: note: this is the location of the previous definition

   #define LCD_PINS_ENABLE 17

^

sketch\pins.h:463:0: warning: “LCD_PINS_D4” redefined

     #define LCD_PINS_D4 37

^

sketch\pins.h:436:0: note: this is the location of the previous definition

   #define LCD_PINS_D4 23

^

sketch\pins.h:464:0: warning: “LCD_PINS_D5” redefined

     #define LCD_PINS_D5 35 

^

sketch\pins.h:437:0: note: this is the location of the previous definition

   #define LCD_PINS_D5 25 

^

sketch\pins.h:465:0: warning: “LCD_PINS_D6” redefined

     #define LCD_PINS_D6 33

^

sketch\pins.h:438:0: note: this is the location of the previous definition

   #define LCD_PINS_D6 27

^

sketch\pins.h:466:0: warning: “LCD_PINS_D7” redefined

     #define LCD_PINS_D7 31

^

sketch\pins.h:439:0: note: this is the location of the previous definition

   #define LCD_PINS_D7 29

^

sketch\pins.h:469:0: warning: “BTN_EN1” redefined

     #define BTN_EN1 17

^

sketch\pins.h:442:0: note: this is the location of the previous definition

   #define BTN_EN1 37

^

sketch\pins.h:470:0: warning: “BTN_EN2” redefined

     #define BTN_EN2 16

^

sketch\pins.h:443:0: note: this is the location of the previous definition

   #define BTN_EN2 35

^

sketch\pins.h:471:0: warning: “BTN_ENC” redefined

     #define BTN_ENC 23  //the click

^

sketch\pins.h:444:0: note: this is the location of the previous definition

   #define BTN_ENC 31  //the click

^

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

             from sketch\Marlin_main.cpp:30:

sketch\pins.h:401:0: warning: “FAN_PIN” redefined

 #define FAN_PIN            8 

^

sketch\pins.h:396:0: note: this is the location of the previous definition

 #define FAN_PIN            4 // IO pin. Buffer needed

^

sketch\pins.h:419:0: warning: “HEATER_2_PIN” redefined

 #define HEATER_2_PIN       6   //BED

^

sketch\pins.h:414:0: note: this is the location of the previous definition

#define HEATER_2_PIN -1

^

sketch\pins.h:459:0: warning: “BEEPER” redefined

     #define BEEPER -1   // Beeper on AUX-4

^

sketch\pins.h:432:0: note: this is the location of the previous definition

   #define BEEPER 33   // Beeper on AUX-4

^

sketch\pins.h:461:0: warning: “LCD_PINS_RS” redefined

     #define LCD_PINS_RS 27 

^

sketch\pins.h:434:0: note: this is the location of the previous definition

   #define LCD_PINS_RS 16 

^

sketch\pins.h:462:0: warning: “LCD_PINS_ENABLE” redefined

     #define LCD_PINS_ENABLE 29

^

sketch\pins.h:435:0: note: this is the location of the previous definition

   #define LCD_PINS_ENABLE 17

^

sketch\pins.h:463:0: warning: “LCD_PINS_D4” redefined

     #define LCD_PINS_D4 37

^

sketch\pins.h:436:0: note: this is the location of the previous definition

   #define LCD_PINS_D4 23

^

sketch\pins.h:464:0: warning: “LCD_PINS_D5” redefined

     #define LCD_PINS_D5 35 

^

sketch\pins.h:437:0: note: this is the location of the previous definition

   #define LCD_PINS_D5 25 

^

sketch\pins.h:465:0: warning: “LCD_PINS_D6” redefined

     #define LCD_PINS_D6 33

^

sketch\pins.h:438:0: note: this is the location of the previous definition

   #define LCD_PINS_D6 27

^

sketch\pins.h:466:0: warning: “LCD_PINS_D7” redefined

     #define LCD_PINS_D7 31

^

sketch\pins.h:439:0: note: this is the location of the previous definition

   #define LCD_PINS_D7 29

^

sketch\pins.h:469:0: warning: “BTN_EN1” redefined

     #define BTN_EN1 17

^

sketch\pins.h:442:0: note: this is the location of the previous definition

   #define BTN_EN1 37

^

sketch\pins.h:470:0: warning: “BTN_EN2” redefined

     #define BTN_EN2 16

^

sketch\pins.h:443:0: note: this is the location of the previous definition

   #define BTN_EN2 35

^

sketch\pins.h:471:0: warning: “BTN_ENC” redefined

     #define BTN_ENC 23  //the click

^

sketch\pins.h:444:0: note: this is the location of the previous definition

   #define BTN_ENC 31  //the click

^

sketch\Marlin_main.cpp:2119: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.
[/color]

How to solve this?
Thx.

In which version of Arduino did you try to build the firmware? Should not be the newest one…

Thanks…

I followed the link and downloaded arduino 1.6 instead of 1.0.6.

i’ll uninstall it and search an older version…

Grtz.

Solved…

Thanks.

Great :slight_smile:

I think it is the wrong approach:

nearly all all statements are warnings because pins are redefined (bad programming style)

There is one error because a structure is redefined: this can cause severe side effects and is nowadays taken as error.

So: check which is the correct definition of the "‘fpos_t’ " is the correct one and remove the wrong one.

[quote=“hoh61”]I think it is the wrong approach:

nearly all all statements are warnings because pins are redefined (bad programming style)

There is one error because a structure is redefined: this can cause severe side effects and is nowadays taken as error.

So: check which is the correct definition of the "‘fpos_t’ " is the correct one and remove the wrong one.[/quote]

Its certainly not the wrong approach. Its a quick remedy to getting started with 3d printing with the K8400. AFAIK the reason for all the pins are redefined is the possibility to port it to a processor later on. I also dont see the problem with the redefines as its just a reference. The end product its just the same.