gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.08k stars 1.61k forks source link

GRBL crash/UART permanently sending data #546

Open Zorg3000 opened 6 years ago

Zorg3000 commented 6 years ago

I'm running a ArduinoNano where GRBL crashes after 2..20 minutes. It has nothing to do with the data I sent, so no matter what shapes I move and no matter what GUI I use, the problem is always reproducible. When the crash happens, I receive a lot of senseless data but GRBL does not react on anything except on an hard reset.

That's what I use

I already tried different patches and modifications which completely disable EEPROM-accesses or change UART transmission from interrupt-based operation to polling mode, but none of these modifications had an influence on the problem.

I also tried different compilers (ArduinoIDE/Linux, avr-gcc/Linux, WINAVR) but this also did not change anything.

So my question: what could be the problem? Do I have to to anything more when running on 20 MHz beside of setting the F_CPU value? And how does it happen the problem does not occur reproducible but only after some (varying) time?

Any help and ideas are welcome!

chamnit commented 6 years ago

Keep in mind that running at 20MHz is outside the supported build. It would help if you provided your Grbl $$ settings, $I build info, and any other config.h you have altered.

cri-s commented 6 years ago

When running on 20Mhz you must enable the 4.5V BOR , otherwise any voltage drop result in erratic behaviour of CPU. Beside that, at least 0.9j works flawless on 20Mhz.

2018-10-23 17:19 GMT+02:00, Sonny Jeon notifications@github.com:

Keep in mind that running at 20MHz is outside the supported build. It would help if you provided your Grbl $$ settings, $I build info, and any other config.h you have altered.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/gnea/grbl/issues/546#issuecomment-432288012

109JB commented 6 years ago

How is the data sent? What is the streaming protocol used? How often is the status query (?) sent? What are your Grbl settings?

Zorg3000 commented 6 years ago

@chamnit I'm using the latest version from GIT with following build settings/parameters:

[OPT:HL,15,128]

$0=10 $1=75 $2=0 $3=0 $4=1 $5=0 $6=0 $10=1 $11=0.010 $12=0.002 $13=0 $20=0 $21=0 $22=1 $23=0 $24=30.000 $25=600.000 $26=250 $27=1.000 $30=1000 $31=0 $32=0 $100=300.000 $101=300.000 $102=300.000 $110=600.000 $111=600.000 $112=600.000 $120=10.000 $121=10.000 $122=10.000 $130=5000.000 $131=5000.000 $132=5000.000

Zorg3000 commented 6 years ago

@cri-s thanks, I'll check the fuses! Unfortunately the board is running on quite a stable power supply, So I afraid this is not the reason :-o