Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 3

Flashing Marlin 2.0.bugfix on an Anet A8 3D printer

Hello there
I am trying to upgrade the firmware of my 3D printer, but don't worry my problem is much more software than hardware based.

I downloaded all the used Arduino IDE's from the official homepage, and downloaded the Marlin firmware directly from github, and also the board definition.

 

I started with the mostly recommended Arduion 1.8.5, and copied the board definition to the documents/arduino folder.
I copied the Anet A8 example configuration files to the marlin directory ( as i did multiple times before with Marlin 1.1.8)
I imported the Marlin.ino file, selected my board (there are the Anet v1.0 and Anet optiboot available) and started to compile.
I have to mention I did NOT change a single char in the files, neither Marlin nor the config files.
But the compile stopped with this error

 

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\main.cpp:20:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:223:0: note: this is the location of the previous definition
#define TIMER5C 18
fork/exec C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc.exe: The filename or extension is too long.
Error compiling for board Anet V1.0.

I also tried the optiboot board option, but I got the same error, so time for google.

Google told me some possible fixes, but neither copying the Marlin directory directly to C:\Marlin, nor changing the system variables did work. Most recommended fix was to upgrade to a newer Arduino IDE, so I uninstalled 1.8.5 and installed latest 1.8.10.

Still, the compile stops:

 

C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:223:0: note: this is the location of the previous definition
#define TIMER5C 18
Multiple libraries were found for "LiquidCrystal.h"
Used: C:\Program
exit status 1
Error compiling for board Anet V1.0 (Optiboot).

 

This error appears for both boards also.
I tried to delete the library, but this resulted in an error "library missing"

Alternatively, Google recommended Arduino 1.9beta, so i gave it a shot:

C:\Users\HBJ2ABT\Documents\Arduino\hardware\anet\avr\variants\sanguino/pins_arduino.h:117:66: error: reinterpret_cast from integer to pointer
#define digitalPinToPCICR(p) ( (((p) >= 0) && ((p) <= 31)) ? (&PCICR) : ((uint8_t *)0) )
~^~~~~~~(pointer to & of &PCICR)
c:\users\hbj2abt\appdata\local\temp\arduino_build_11766\sketch\src\hal\hal_avr\endstop_interrupts.h:162:21: note: in expansion of macro 'digitalPinToPCICR'
static_assert(digitalPinToPCICR(Z_MIN_PIN), "Z_MIN_PIN is not interrupt-capable");
^~~~~~~~~~~~~~~~~(pointer to d of digital)
exit status 1
Error compiling for board Anet V1.0.

 

Tried with optiboot:


C:\Users\HBJ2ABT\Desktop\arduino-PR-beta1.9-BUILD-113\hardware\arduino\avr\cores\arduino/Arduino.h:223:0: note: this is the location of the previous definition

#define TIMER5C 18

exit status 1
Error compiling for board Anet V1.0 (Optiboot).

 

Googling the anet v1.0 board error brought me absolutely nothing, just 1 thread without answers and a github thread which I am not advanced enough in programming to understand, also with another user running into this error so definitely not solved for standard users.

The optiboot error tells me basically nothing either.

 

---------------

 

So

is there anyone who compiled Marlin 2.0 for an Anet A8 and got similar problems?
There are some tutorials on the web, which showed it can be done in general, also with the stock board, but none of them run into these errors.

 

Can someone plz help?

 

 

2 Replies
Ground Controller Lvl 1
Message 2 of 3

Re: Flashing Marlin 2.0.bugfix on an Anet A8 3D printer

Downgrading Arduino AVR Boards 1.8.1 to 1.6.23 in Boards Manager worked for me.

I'm using Arduino 1.2.10 IDE.

 

Good luck

Highlighted
Ground Controller Lvl 1
Message 3 of 3

Re: Flashing Marlin 2.0.bugfix on an Anet A8 3D printer

Did you manage to fix it? I have the same problem :c