makerbase-mks / MKS-DLC

MKS DLC support grbl firmware, can use Laser mode and CNC mode,support connect MKS TFT24/32/35 and TFT_CNC firmware support lasering and cnc operation...
https://www.aliexpress.com/item/32924263672.html?spm=2114.12010612.8148356.1.67302c46xDuwHo
94 stars 26 forks source link

cannot compile in arduino IDE #13

Open ve3sjk opened 3 years ago

ve3sjk commented 3 years ago

I am using the files in the DLC-Laser.rar but when i choose arduino/genuino UNO board in IDE 1.8.2 the compile fails with the following errors, i need to complile a version that doesn not try and home Z. Am I picking the wrong board? Please point me to firmware that i can change options on and complile and flash to board with arduinio IDE.

`C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c: In function 'sleep_enable':

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c:33:3: error: 'TCNT3' undeclared (first use in this function)

TCNT3 = 0; // Reset timer3 counter register

^

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c:33:3: note: each undeclared identifier is reported only once for each function it appears in

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c:34:3: error: 'TIMSK3' undeclared (first use in this function)

TIMSK3 |= (1<<TOIE3); // Enable timer3 overflow interrupt

^

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c:34:17: error: 'TOIE3' undeclared (first use in this function)

TIMSK3 |= (1<<TOIE3); // Enable timer3 overflow interrupt

             ^

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c: In function 'sleep_disable':

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c:39:32: error: 'TIMSK3' undeclared (first use in this function)

static void sleep_disable() { TIMSK3 &= ~(1<<TOIE3); } // Disable timer overflow interrupt

                            ^

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c:39:47: error: 'TOIE3' undeclared (first use in this function)

static void sleep_disable() { TIMSK3 &= ~(1<<TOIE3); } // Disable timer overflow interrupt

                                           ^

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c: In function 'sleep_init':

C:\Users\Sysop\Documents\Arduino mega-2\libraries\grbl\sleep.c:47:3: error: 'TCCR3B' undeclared (first use in this function)

TCCR3B = 0; // Normal operation. Overflow`

mks-viva commented 3 years ago

Hi! May be you can refer to here: https://github.com/gnea/grbl/wiki/Compiling-Grbl