Open goeland86 opened 5 months ago
It builds with both the STM32CubeIDE and the WebBuilder so must be something wrong with your platformio.ini. Here is the WebBuilder generated platformio.ini for you to compare with:
[platformio]
include_dir = Inc
src_dir = Src
[common]
build_flags =
-I .
-I boards
-I FatFs
-I FatFs/STM
-I Drivers/FATFS/Target
-I Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc
-I Middlewares/ST/STM32_USB_Device_Library/Core/Inc
-I USB_DEVICE/App
-I USB_DEVICE/Target
-D OVERRIDE_MY_MACHINE
-D _USE_IOCTL=1
-D _USE_WRITE=1
-D _VOLUMES=1
-Wl,-u,_printf_float
-Wl,-u,_scanf_float
lib_deps =
boards
bluetooth
grbl
keypad
laser
motors
trinamic
odometer
fans
FatFs
sdcard
spindle
embroidery
Drivers/FATFS/App
Drivers/FATFS/Target
# USB serial support
Middlewares/ST/STM32_USB_Device_Library/Core
Middlewares/ST/STM32_USB_Device_Library/Class
USB_DEVICE/App
USB_DEVICE/Target
lib_extra_dirs =
.
boards
FatFs
Middlewares/ST/STM32_USB_Device_Library
USB_DEVICE
[eth_networking]
build_flags =
-I lwip/src/include
-I networking/wiznet
lib_deps =
lwip
networking
lib_extra_dirs =
[env]
platform = ststm32
platform_packages = framework-stm32cubef4 @ ~1.26.2
framework = stm32cube
# Do not produce .a files for lib deps (which would prevent them from overriding weak symbols)
lib_archive = no
lib_ldf_mode = off
[env:test]
board = genericSTM32F407VGT6
board_build.ldscript = STM32F407VGTX_BL32K_FLASH.ld
build_flags = ${common.build_flags}
-D WEB_BUILD
-D BOARD_BTT_SKR_20
-D USE_HAL_DRIVER
-D STM32F407xx
-D HSE_VALUE=8000000
-D USB_SERIAL_CDC=1
-D PROBE_ENABLE=1
-D TRINAMIC_ENABLE=2209
-D TRINAMIC_UART_ENABLE=2
-D BLUETOOTH_ENABLE=0
-D NETWORKING_ENABLE=0
-D ESTOP_ENABLE=1
-D SPINDLE0_ENABLE=11
-D N_SPINDLE=1
lib_deps = ${common.lib_deps}
eeprom
lib_extra_dirs = ${common.lib_extra_dirs}
Your provided platformio.ini test file works - and I was using the default from the project for SKR2.
May I kindly suggest that the SKR2 definitions in the provided platformio.ini
file from the project re-use the provided values listed above?
I'm happy to create a PR to do so if it would be helpful.
I'm glad a found this issue. I was working on a custom board and basing it around the SKR2 and was stumped why none of those would link properly.
I'm a newbie with grblHAL, so apologies if I missed something in the documentation I should've seen.
I set up a new environment for the SKR 2 with TMC2209s as follows:
When I build (using PlatformIO in VSCode), I get the following error during compilation (full log truncated for clarity).
Out of curiosity, I tried the TMC2130 version, just to see if that builds. It seems not.
I would appreciate any input on how to resolve this. The WebBuilder also disables any EEPROM option for the SKR 2 board, which has proven frustrating when trying to set up my router.
Thanks for any pointers to resolve the issue.