Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

PlatformIO Support #246

@hotzenklotz

Description

@hotzenklotz

Have you considered adding first party PlatformIO build support? I think it would fit very well with the project and it's aim to provide GRBL for several modern hardware stacks. I am a big fan of the Marlin configuration which has to provide build steps for many boards and MCUs. This would be a huge plus for getting up and running with grblHAL reliably and easily.

It tried setting up a platformio.ini tonight, but ultimately failed at getting ESP32 to compile. The general project structure, the connection between some config files are all quite new/unknown to me. It also seems the each driver sub-directory has it's own "style"/structure. It would be really cool to have the same easy of use as Marlin for build grblHAL for different boards.

Perhaps, my first attempts can serve as inspiration.

[platformio]
src_dir = .

[common]
framework = arduino
default_src_filter = 
  +<grbl/*> 
  +<plugins/*>

[common_esp32]
extends = common
platform = espressif32

build_flags = -DGRBL_ESP32
src_filter = 
  ${common.default_src_filter} 
  +<drivers/ESP32/*> 

[env:esp32_lolin_d32]
extends = common_esp32
board = lolin_d32

[env:teensy41]
extends = common
platform = teensy
board = teensy41
upload_protocol = teensy-cli

src_filter = 
  ${common.default_src_filter} 
  +<drivers/IMXRT1062/grblHAL_Teensy4/*>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions