Monday, April 20, 2015

Marlin on Gen6.D with Atmega1284P 16Mhz

DISCLAIMER:"Please be careful in applying any changes to your firmware. Use this at your own risk. I wasn't able to test the result of this customization. I am not responsible for any damages to equipment leading from this hack".

Recently people are seeking my help getting their printer back to working order as they are having issues compiling the firmware posted a few years back. Apparently there is a new version of the Romscraj Gen6.d board which has been released with a Atmega1284P 16Mhz. Selecting the board in arduino 1.02 results in errors.


I found a clue in a Google group ( link ). The quick solution is to edit the following line of code in in "Marlin.h".

Instead of the code starting from line 27:

 #if ARDUINO >= 100   
  #if defined(__AVR_ATmega644P__)  
   //#include "WProgram.h"  
  //#else  
   //#include "Arduino.h"  
  //#endif  
 //#else  
   //#include "WProgram.h"  
 #endif  

Edit and use the following code:

 #if ARDUINO >= 100   
  #if defined(__AVR_ATmega644P__)  
   #include "WProgram.h"  
  #else  
   #include "Arduino.h"  
  #endif  
 #else  
   #include "WProgram.h"  
 #endif  

With this edit the firmware should compile without any errors

DISCLAIMER:"Please be careful in applying any changes to your firmware. Use this at your own risk. I wasn't able to test the result of this customization. I am not responsible for any damages to equipment leading from this hack".

No comments:

Post a Comment