Skip to content

I'm a GrblHAL beginner. I've always used Keil to develop STM32, so this is my first time using PlatformIO. I've been trying to compile for a few days but haven't been able to. I'm using an STM32F407ZET6. Is there a problem with my configuration? #284

@haishi14

Description

@haishi14

I'm a GrblHAL beginner. I've always used Keil to develop STM32, so this is my first time using PlatformIO. I've been trying to compile for a few days but haven't been able to. I'm using an STM32F407ZET6. Is there a problem with my configuration?


Image [env:stm32f407zet6] platform = ststm32 framework = stm32cube

; 使用通用 F407 板定义
board = genericSTM32F407VGT6

; 覆盖为 ZET6(512KB Flash / 192KB RAM)
board_build.mcu = stm32f407zet6
board_build.f_cpu = 168000000L

; 下载 & 调试
upload_protocol = stlink
debug_tool = stlink

; 编译宏
build_flags =
-DSTM32F407xx
-DUSE_HAL_DRIVER
-DHAL_DFSDM_MODULE_DISABLED


Inc/driver.h:47:10: fatal error: grbl/driver_opts.h: No such file or directory
#include "grbl/driver_opts.h"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Src\timers.c:23:0:
Inc/driver.h:47:10: fatal error: grbl/driver_opts.h: No such file or directory
#include "grbl/driver_opts.h"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from Src\thcad2.c:22:0:
Inc/driver.h:47:10: fatal error: grbl/driver_opts.h: No such file or directory
#include "grbl/driver_opts.h"
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio\build\stm32f407zet6\src\tmc_spi.o] Error 1
*** [.pio\build\stm32f407zet6\src\timers.o] Error 1
*** [.pio\build\stm32f407zet6\src\thcad2.o] Error 1
========================================================= [FAILED] Took 1.99 seconds =========================================================

Environment Status Duration


stm32f407zet6 FAILED 00:00:01.991
==================================================== 1 failed, 0 succeeded in 00:00:01.991 ====================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions