Loading 3D model… large boards can take a moment.
A GRBL ported to Zephyr RTOS with some additional features like software CDC ACM serial port and SD card support. Developed for my CoreXY pen ploter, so some features of GRBL are commented out. Please create an issue or propose a pull request if you are interested in more functionality (list of unsupported bits is below). The greatest benefit of having the GRBL ported to Zephyr is the ability of running it on variety of platforms with way more powerful CPUs than the original Arduino. As of now this project is targeting the STM32F405RG (earlier tests were performed on the STM32F446RE) and with minor modifications in the boards directory or overlay file (or adding either of those to be precise) it should work on different STM32-s as well.
The only non standard driver this project uses is the modules/hw_timer and this is the only obstacle for running this on MCUs different than STM32-s. modules/hw_timer is derived from the pwm driver and its only purpose is to fire a callback(s) on a timer update event (and possibly on output compare event in the future). Other parts are implemented in stock Zephyr.
The project was written to power my CoreXY pen plotter, and as such has some parts not implemented (probing) and others not tested (Z-axis with stepper motor, see below). It should be a good starting point to develop something more complete that would run the variety of CNC machines. Pull requests are welcome.
Tested with Zephyr RTOS 2.6.99. Familiarize yourself with the Zephyr RTOS build process first. :
?
That is when CONFIG_BOOTLOADER_MCUBOOT=n in the prj.conf.
rm -Rf build
cmake -B build -GNinja -DBOARD=plotter_f405rg -DBOARD_ROOT=. .
ninja -C build
west flash # Or use IDE, or use openocd directly
config.h and globally in the CMakeLists.txt. Used mostly in the defaults.hextern "C" { to most of the *.h files to enable C++ interoperability.defaults.h.delay function in the main loop. This prevents scheduler from switching to other lower-priority threads which in my case were : idle, logging and shell_uart. I've lowered the main thread priority to 14 (from 0) and added k_yeld, so other low priority threads have a chance to run now. This include logging, shell and others.Derived from PWM driver. Changes:
Header:
typedef for the callback.Source file:
No comments yet. Be the first to ask about this board.