Welcome! Log In Create A New Profile

Advanced

Extruder advance constant ERROES

Posted by kano 
Extruder advance constant ERROES
November 02, 2014 08:57PM
I am trying to set my marlin to advance extrude ,

so i add my own constant to marlin like below

#define ADVANCE

#ifdef ADVANCE

#define EXTRUDER_ADVANCE_K .0

#define D_FILAMENT 1.75
#define STEPS_MM_E 39.3716849
#define EXTRUTION_AREA (0.25 * D_FILAMENT * D_FILAMENT * 3.14159)
#define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS]/ EXTRUTION_AREA)

#endif // ADVANCE

but when i trying to upload it to Arduino,

It come out Error messages like this,


stepper.cpp: In function 'void TIMER0_COMPA_vect()':
stepper.cpp:742:5: error: 'OCR0A' was not declared in this scope
OCR0A = old_OCR0A;
^
stepper.cpp: In function 'void st_init()':
stepper.cpp:995:5: error: 'TIMSK0' was not declared in this scope
TIMSK0 |= (1<<OCIE0A);
^
stepper.cpp:995:19: error: 'OCIE0A' was not declared in this scope
TIMSK0 |= (1<<OCIE0A);
^
The version that i use is bobc's marlin for arduino due

i wonder if there is something wrong when it trans from mega Ver. to due Ver

can anyone helps

thx
Sorry, only registered users may post in this forum.

Click here to login