grblHAL / core

grblHAL core code and master Wiki
Other
320 stars 84 forks source link

main.c:30: undefined reference to `grbl_enter #178

Closed duinzicht8 closed 1 year ago

duinzicht8 commented 2 years ago

I have made a new directory "grblHAL_Due_Upload" and all source copied to that directory. I compiled it with Arduino-IDE 1.8.19

Arduino: 1.8.19 (Linux), TD: 1.56, Board: "Arduino Due (Programming Port)"

sketch/main.c.o: In function setup': /home/jan/SAM3X8E/grblHAL_Due/src/grblHAL_Due_Upload/main.c:30: undefined reference togrbl_enter' collect2: error: ld returned 1 exit status exit status 1 Error compiling for board Arduino Due (Programming Port).

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

terjeio commented 2 years ago

Follow this procedure to get the sources and compile. The grblHAL_Due_Upload folder should only contain the .ino file.

duinzicht8 commented 2 years ago

Terjeio, thanks for your reply,

the Arduino due is working now, but how to activate the 4the and 5the axis. If I use G1 A=6 in the gcode, there is an error.

terjeio commented 2 years ago

Number of axes is defined here.

BTW G1 A=6 is incorrect syntax, it should be G1 A6 (and feedrate has to be set).