grblHAL / iMXRT1062

grblHAL driver for NXP iMXRT1062 (Teensy 4.x)
Other
51 stars 39 forks source link

Teensy 4.1 hangs if N_AXIS >3 #16

Closed Tiktiki closed 3 years ago

Tiktiki commented 3 years ago

No errors on compile, but as soon as N_AXIS is set above 3, no response from the controller.

Comport opens no error. No replies from the controller.

Tested with almost all options (Eth/SD/Encoder), still hangs regardless of what is enabled (or not). Ganged/Auto-square, etc. do not change anything (Auto-square Y works with N_AXIS == 3)

terjeio commented 3 years ago

Bad code on my part - sorry for that:

Change: https://github.com/grblHAL/iMXRT1062/blob/5b99e0db1a52015eae03e961c2fe2b1cad5cdc44/grblHAL_Teensy4/src/driver.c#L2025 to

#if N_AXIS > 3
    IOInitDone = settings->version == 20;
#else
    IOInitDone = settings->version == 19;
#endif

I'll commit a fix later.