Other

项目介绍

grblHAL/ESP32 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 Other 许可证,目前获得 124 个 Star、75 次 Fork。

仓库全名
grblHAL/ESP32
开源许可证
Other
Star 数
124
Fork 数
75
未关闭 Issue
39

README 摘要

ESP32 grblHAL driver Important: If enabling ftp upload to the SD card then ffconf.h in the ESP SDK has to be edited, #define FFFSRPATH must be changed to 2 or you will get a compiler error. ffconf.h is located in the subfolder esp-idf\components\fatfs\src in the ESP32 SDK installation. The ESP32 SDK is typically installed in the user folder. This driver can be built with the Web Builder. How to build using ESP-IDF…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ESP32 用什么语言开发?

主要使用 C 编写,采用 Other 许可证,目前有 124 个 Star。

ESP32 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 ESP32 的源码?

可以直接克隆仓库:git clone https://github.com/grblHAL/ESP32.git;安装与运行步骤见仓库 README。

ESP32 最近还在维护吗?

仓库最近一次更新为 6月3日,当前有 39 个未关闭 Issue;Star 数为 124,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

grblHAL driver for ESP32

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
398
价值分
107
活跃状态
活跃

README

ESP32 grblHAL driver

Important:
If enabling ftp upload to the SD card then ffconf.h in the ESP SDK has to be edited, #define FF_FS_RPATH must be changed to 2 or you will get a compiler error.
ffconf.h is located in the subfolder esp-idf\components\fatfs\src in the ESP32 SDK installation. The ESP32 SDK is typically installed in the user folder.

This driver can be built with the Web Builder.

How to build using ESP-IDF v4.3:

While this manual briefly describes basic build process on Linux OS, you can find more details as well as differences for building on other OS at this webpage:

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html#step-2-get-esp-idf

First you have to prepare esp-idf v4.3:

#Create directory and clone esp-idf into it:
mkdir -p ~/esp
cd ~/esp
git clone -b release/v4.3 --recursive --shallow-submodules https://github.com/espressif/esp-idf.git

#Prepare build environment and toolchain:
cd ~/esp/esp-idf
./install.sh
. ~/esp/esp-idf/export.sh

Then get the grblHAL driver code:

#Create directory and clone the ESP32 grblHAL driver into it:
git clone --recursive https://github.com/grblHAL/ESP32.git

Go into the ESP32/main directory and modify settings in grbl/config.h and CMakeLists.txt as needed. Pin assignments and board specific config is in *_map.h files for each individual board.

Run idf.py build from the ESP32 directory. This will build the firmware image which can be later flashed into ESP32 device.

Note that idf.py command is only available in terminal window which was previously configured using the . ~/esp/esp-idf/export.sh command.

After build is completed you will be instructed on how to flash firmware into the device. Typically you can use command similar to this: idf.py -p /dev/ttyUSB0 flash

Once flashing is complete, your CNC controller is ready to be configured and used.

Using Docker

If you’re familiar with Docker, you can use it to build grblHAL in a self-contained environment without installing the complete toolchain on your system:

  • prepare and configure the codebase as described above
  • build with docker run -it --rm -v $(pwd):/grbl -w /grbl espressif/idf:release-v4.3 idf.py build
  • flash with docker run -it --rm -v $(pwd):/grbl --privileged -v /dev:/dev -w /grbl/drivers/ESP32 espressif/idf:release-v4.3 idf.py -p /dev/ttyUSB0 flash

Building with user defined plugin

The file containing my_plugin_init() has to be added to CMakeLists.txt in the SRCS list and grbl/my_plugin.c has to be removed from it to be linked correctly.

Changelog/Notes:


NOTE: grbl/config.h or CMakeLists.txt may need modification before compilation. If needed an #error (with instructions) will be generated when compiling.

NOTE: Configuration has been simplified a bit, primarily change options in CMakeLists.txt to enable/disable. Configuration of options in my_machine.h is turned off in CMakeLists.txt by default due to this.


Credits:

index.htm.gz is Copyright © 2019 Luc Lebosse - from his ESP3D-WEBUI, I may have pulled a few lines from his backend code too.

dns_server.c is Copyright © 2019 Tony Pottier - from his ESP32 WiFi Manager

Snippets of code is extracted from Espressif ESP-IDF examples which are public domain.


2023-09-20

评论

暂无评论