Skip to content

Software

grblHAL

By grblHAL, from github.com/grblHAL/core (opens in a new tab)

  • Robot arms and industry
  • Firmware
  • GPL-3.0-only

grblHAL is a high-performance G-code motion controller firmware for CNC machines, a port and rewrite of grbl 1.1f for 32-bit microcontrollers.

Facts

GitHub stars
531read on 28 Nov 2026
Last update
27 Nov 2026Newest commit on master
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
32-bit microcontroller with ample RAM and flash (compared to AVR 328p), requiring a hardware driver for the target processor.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
GPL-3.0-only (opens in a new tab)

Read by Robotheca from COPYING (opens in a new tab) (GPL-3.0-only) at commit b0a40ea (opens in a new tab), on 28 Nov 2026.

Commercial use
Yes

Copyleft: Modified source must be published.

At a glance

What it is
  • Runs on ARM and other 32-bit MCUs, with drivers for more than 15 processor families sharing one core codebase.
  • Produces precise control pulses, up to 300kHz depending on driver and processor.
  • Accepts standards-compliant G-code, including arcs, circles and helical motion, tested with several CAM tools.
  • Includes acceleration management with look-ahead for smooth motion and cornering.
  • Open plugin architecture allows adding M-codes, settings and event handling without changing core source.
  • Supports a broad set of G- and M-codes, some dependent on driver or configuration, plus lathe and tool-change modes.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
GPL-3.0-only. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 27 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit b0a40ea

Robotheca read the repository at two versions: the summary at 4ec1ae4 and the facts and the README at b0a40ea (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by grblHAL, at commit b0a40ea, under GPL-3.0-only (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here
grblHAL

Latest build date is 20261127, see the changelog (opens in a new tab) for details.

[!NOTE] A settings reset will be performed on an update of builds prior to 20241208. Backup and restore of settings is recommended.


A web app for building for some drivers (opens in a new tab) is now available, feedback will be appreciated.

grblHAL has many extensions (opens in a new tab) that may cause issues with some senders. As a workaround for these a compile time option (opens in a new tab) has been added that disables extensions selectively.

[!NOTE] grblHAL defaults to normally closed (NC) switches for inputs, if none are connected when testing it is likely that the controller will start in alarm mode.
Temporarily short the Reset, E-Stop and Safety Door4 inputs to ground or invert the corresponding inputs by setting $14=73 to avoid that.
Please check out this Wiki page (opens in a new tab) for additional important information.

Windows users may try ioSender (opens in a new tab), binary releases can be found here (opens in a new tab). It has been written to complement grblHAL and has features such as proper keyboard jogging, advanced probing, automatic reconfiguration of DRO display for up to 6 axes, lathe mode including conversational G-Code generation, 3D rendering, macro support etc. etc.


grblHAL is a no-compromise, high performance, low cost alternative to parallel-port-based motion control for CNC milling and is based on the Arduino version of grbl (opens in a new tab). It is mainly aimed at ARM processors (or other 32-bit MCUs) with ample amounts of RAM and flash (compared to AVR 328p) and requires a hardware driver (opens in a new tab) to be functional. Currently drivers are available for more than 15 different processors/processor families all of which share the same core codebase.

grblHAL has an open architecture allowing plugins (opens in a new tab) to extend functionality. User made plugins can be added to grblHAL without changing a single file in the source1, and allows for a wide range extensions to be added. New M-codes can be added, space for plugin specific settings can be allocated, events can be subscribed to etc. etc.
Adding code to drive an ATC, extra outputs or even adding a UI2 has never been easier. You can even add your own driver (opens in a new tab) if you feel so inclined.

HAL = Hardware Abstraction Layer

The controller is written in highly optimized C utilizing features of the supported processors to achieve precise timing and asynchronous operation. It is able to maintain up to 300kHz3 of stable, jitter free control pulses.

It accepts standards-compliant g-code and has been tested with the output of several CAM tools with no problems. Arcs, circles and helical motion are fully supported, as well as, all other primary g-code commands. Macro functions, variables, and some canned cycles are not supported, but we think GUIs can do a much better job at translating them into straight g-code anyhow.

grblHAL includes full acceleration management with look ahead. That means the controller will look up motions into the future and plan its velocities ahead to deliver smooth acceleration and jerk-free cornering.

This is a port/rewrite of grbl 1.1f (opens in a new tab) and should be compatible with GCode senders compliant with the specifications for that version. It should be possible to change default compile-time configurations if problems arise, eg. the default serial buffer sizes has been increased in some of the drivers (opens in a new tab) provided.

1 This feature is only to be used for private plugins, if shared then a single call must be added to the driver code of the target processors.
2 I do not usually recommend doing this, and I will not accept pull requests for any. However I may add a link to the github repository for any that might be made.
3 Driver/processor dependent.
4 Not enabled by default if building from source, but may be enabled in prebuilt firmware.


Supported G-Codes:
  - Non-Modal Commands: G4, G10L2, G10L20, G28, G30, G28.1, G30.1, G53, G65*****, G66*****, G67*****, G92, G92.1
  - Additional Non-Modal Commands: G10L1*, G10L10*, G10L11*
  - Motion Modes: G0, G1, G2****, G3****, G5, G5.1, G38.2, G38.3, G38.4, G38.5, G80, G33*
  - Canned cycles: G73, G81, G82, G83, G85, G86, G89, G98, G99
  - Repetitive cycles: G76*
  - Feed Rate Modes: G93, G94, G95*, G96*, G97*
  - Unit Modes: G20, G21
  - Scaling: G50, G51
  - Lathe modes: G7*, G8*
  - Distance Modes: G90, G91
  - Arc IJK Distance Modes: G91.1
  - Plane Select Modes: G17, G18, G19
  - Tool Length Offset Modes: G43*, G43.1, G43.2*, G49
  - Cutter Compensation Modes: G40
  - Coordinate System Modes: G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3
  - Control Modes: G61
  - Program Flow: M0, M1, M2, M30, M60
  - Coolant Control: M7, M8, M9
  - Spindle Control: M3, M4, M5
  - Tool Change: M6* (Two modes possible: manual** - supports jogging, ATC), M61
  - Switches: M48, M49, M50, M51, M53
  - Input/output control***: M62, M63, M64, M65, M66, M67, M68
  - Modal state handling*: M70, M71, M72, M73
  - Return from macro*****: M99
  - Valid Non-Command Words: A*, B*, C*, D, E*, F, H*, I, J, K, L, N, O*, P, Q*, R, S, T, U*, V*, W*, X, Y, Z

  * driver/configuration dependent. W axis only available when ABC axes are remapped to UVW or when lathe UVW mode is enabled.
  ** requires compatible GCode sender due to protocol extensions, new state and RT command.
  *** number of inputs and outputs supported dependent on driver implementation.
  **** supports multi turn arcs from build 20220718.
  ***** requires keypad macros plugin or SD card plugin.

G/M-codes not supported by legacy Grbl (opens in a new tab) are documented here (opens in a new tab).

Some plugins (opens in a new tab) implements additional M-codes.


20260908

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.