打开 boboxx 打开了这个问题 2021 年 11 月 18 日 · 3条评论 打开 SKR2 – 编译错误#44 boboxx 打开了这个问题 2021 年 11 月 18 日 · 3条评论 评论 boboxx 评论了 2021 年 11 月 18 日 刚刚从 git 中做了一个新的拉动: git clone –recurse-submodules https://github.com/grblHAL/STM32F4xx.git 从另一个 SKR2 的副本为 platformio 创建了一个新的板配置,但删除了 trinamic,因为我将使用一些步进驱动器适配器模块。但我收到一个错误: 错误:’cs’ 未声明(首次在此函数中使用) 波纹管是我的配置和日志: [环境:btt_skr_2] 未经测试,可能无法启动。请报告问题: https://github.com/grblHAL/STM32F4xx/issues board = genericSTM32F407VGT6 board_build.ldscript = STM32F407VGTX_FLASH.ld build_flags = ${common.build_flags} 有关选项,请参阅 Inc/my_machine.h -D BOARD_BTT_SKR_20= -D HSE_VALUE=8000000 #-D USB_SERIAL_CDC=1 引导加载程序偏移量 (32K) -D VECT_TAB_OFFSET=0x8000 lib_deps = ${common.lib_deps} eeprom lib_extra_dirs = ${common.lib_extra_dirs} 此板不支持上传,因为 BOOT0 与 GND 相连。 使用默认引导加载程序,您必须通过复制来部署新固件 .pio/build//firmware.bin(出品pio run)到SD卡。 通过使用#define BOARD_BTT_SKR_20 删除“//”在 my_machine.h 中启用我的板 C:\Users\user\Documents\Projects\STM32F4xx>pio run –environment btt_skr_2 处理btt_skr_2(开发板:genericSTM32F407VGT6;平台:ststm32;框架:stm32cube) 可以通过-v, --verbose选项 配置启用详细模式:https ://docs.platformio.org/page/boards/ststm32/genericSTM32F407VGT6.html 平台:ST STM32 (15.0.0) > STM32F407VG(128k RAM。1024k 闪存) 硬件:STM32F407VGT6 168MHz , 128KB RAM, 1MB Flash DEBUG: Current (stlink) External (jlink, stlink) PACKAGES: 框架-stm32cubef4 1.26.2 工具-ldscripts-ststm32 0.1.0 toolchain-gccarmnoneeabi 1.70201.0 (7.2.1) LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ off, Compatibility ~ soft 找到 77 个兼容的库 扫描依赖… 依赖关系图 |– |– |– |– |– |– |– |– |– |– |– |– 在发布模式下 构建 编译 .pio\build\btt_skr_2\ libbfb\grbl\maslow.o 编译 .pio\build\btt_skr_2\libbea\keypad\keypad.o 编译 .pio\build\btt_skr_2\lib17a\laser\coolant.o 编译 .pio\build\btt_skr_2\lib17a\laser\ppi .o 编译.pio\build\btt_skr_2\lib02a\motors\trinamic.o 编译.pio\build\btt_skr_2\lib392\odometer\odometer.o 编译.pio\build\btt_skr_2\lib2c9\spindle\huanyang.o 编译.pio\build \btt_skr_2\lib2c9\spindle\modbus.o 编译 .pio\build\btt_skr_2\lib535\App\usbd_cdc_if.o 编译 .pio\build\btt_skr_2\libf00\eeprom\eeprom_24AAxxx.o 编译 .pio\build\btt_skr_2\libf00\ eeprom\eeprom_24LC16B.o 编译 .pio\build\btt_skr_2\src\btt_skr_2.0.o 编译 .pio\build\btt_skr_2\src\diskio.o Src\btt_skr_2.0.c: 在函数 ‘add_cs_pin’: Src\btt_skr_2 .0.c:511:7: error: ‘cs’ undeclared (first use in this function) cs[X_AXIS].port = (GPIO_TypeDef *)gpio->port; ^~ Src\btt_skr_2.0.c:511:7: 注意:每个未声明的标识符只针对它出现在顶层 的每个函数报告一次: Src\btt_skr_2.0.c:541:13: 警告:’if_init’ 已定义但未使用 [-Wunused-function] static void if_init(uint8_t motors, axes_signals_t enabled) ^~~~~~~ 编译 .pio\build\btt_skr_2\src\driver.o 编译 .pio\build\btt_skr_2\src\flash。 o *** [.pio\build\btt_skr_2\src\btt_skr_2.0.o] 错误 1 贡献者 terjeio 评论了 2021 年 11 月 18 日 将第 503 行更改为 #if TRINAMIC_ENABLE 并重新编译。 我稍后会提交更新。 作者 boboxx 评论了 2021 年 11 月 18 日 谢谢你解决了问题! 汉科数控 评论了 2021 年 11 月 18 日 将第503行更改为#if TRINAMIC_ENABLE并重新编译。 稻后我会提供更新。 将第503行更改为#if TRINAMIC_ENABLE并重新编译。 稻后我会提供更新。 嗨,Terje Io,你有制作 stm32h7 驱动程序的计划吗?我做了esp32的grbl电路板出售,针对初学者CNC爱好者(他们用铝板或铝型材做小型桌面cnc),我想再做一个 这是专业CNC爱好者的电路板(他们用铸件). 我觉得STM32H743VIT6很好。这种芯片很受欢迎,也很容易买到。但我不会编程。那你有做stm32h7的打算吗?我将等待 terjeio 提到了这个问题 2021 年 11 月 22 日 未检测到电路板 #45 关闭 免费注册 在 GitHub 上加入此对话。已有帐户? 登录评论 受让人 无人分配 标签 还没有 项目 还没有 里程碑 没有里程碑 发展 没有分支机构或拉取请求 3人参加
刚刚从 git 中做了一个新的拉动:
git clone –recurse-submodules https://github.com/grblHAL/STM32F4xx.git
从另一个 SKR2 的副本为 platformio 创建了一个新的板配置,但删除了 trinamic,因为我将使用一些步进驱动器适配器模块。但我收到一个错误:
错误:’cs’ 未声明(首次在此函数中使用)
波纹管是我的配置和日志:
[环境:btt_skr_2]
未经测试,可能无法启动。请报告问题:
https://github.com/grblHAL/STM32F4xx/issues
board = genericSTM32F407VGT6
board_build.ldscript = STM32F407VGTX_FLASH.ld
build_flags = ${common.build_flags}
有关选项,请参阅 Inc/my_machine.h
-D BOARD_BTT_SKR_20=
-D HSE_VALUE=8000000
#-D USB_SERIAL_CDC=1
引导加载程序偏移量 (32K)
-D VECT_TAB_OFFSET=0x8000
lib_deps = ${common.lib_deps}
eeprom
lib_extra_dirs = ${common.lib_extra_dirs}
此板不支持上传,因为 BOOT0 与 GND 相连。
使用默认引导加载程序,您必须通过复制来部署新固件
.pio/build//firmware.bin(出品
pio run
)到SD卡。通过使用#define BOARD_BTT_SKR_20 删除“//”在 my_machine.h 中启用我的板
C:\Users\user\Documents\Projects\STM32F4xx>pio run –environment btt_skr_2
处理btt_skr_2(开发板:genericSTM32F407VGT6;平台:ststm32;框架:stm32cube)
可以通过
-v, --verbose
选项配置启用详细模式:https
://docs.platformio.org/page/boards/ststm32/genericSTM32F407VGT6.html 平台:ST STM32 (15.0.0) > STM32F407VG(128k RAM。1024k 闪存)
硬件:STM32F407VGT6 168MHz , 128KB RAM, 1MB Flash
DEBUG: Current (stlink) External (jlink, stlink)
PACKAGES:
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ off, Compatibility ~ soft
找到 77 个兼容的库
扫描依赖…
依赖关系图
|–
|–
|–
|–
|–
|–
|–
|–
|–
|–
|–
|–
在发布模式下
构建 编译 .pio\build\btt_skr_2\ libbfb\grbl\maslow.o
编译 .pio\build\btt_skr_2\libbea\keypad\keypad.o
编译 .pio\build\btt_skr_2\lib17a\laser\coolant.o
编译 .pio\build\btt_skr_2\lib17a\laser\ppi .o
编译.pio\build\btt_skr_2\lib02a\motors\trinamic.o
编译.pio\build\btt_skr_2\lib392\odometer\odometer.o
编译.pio\build\btt_skr_2\lib2c9\spindle\huanyang.o
编译.pio\build \btt_skr_2\lib2c9\spindle\modbus.o
编译 .pio\build\btt_skr_2\lib535\App\usbd_cdc_if.o
编译 .pio\build\btt_skr_2\libf00\eeprom\eeprom_24AAxxx.o
编译 .pio\build\btt_skr_2\libf00\ eeprom\eeprom_24LC16B.o
编译 .pio\build\btt_skr_2\src\btt_skr_2.0.o
编译 .pio\build\btt_skr_2\src\diskio.o
Src\btt_skr_2.0.c: 在函数 ‘add_cs_pin’:
Src\btt_skr_2 .0.c:511:7: error: ‘cs’ undeclared (first use in this function)
cs[X_AXIS].port = (GPIO_TypeDef *)gpio->port;
^~
Src\btt_skr_2.0.c:511:7: 注意:每个未声明的标识符只针对它出现在顶层 的每个函数报告一次:
Src\btt_skr_2.0.c:541:13: 警告:’if_init’ 已定义但未使用 [-Wunused-function]
static void if_init(uint8_t motors, axes_signals_t enabled)
^~~~~~~
编译 .pio\build\btt_skr_2\src\driver.o
编译 .pio\build\btt_skr_2\src\flash。 o
*** [.pio\build\btt_skr_2\src\btt_skr_2.0.o] 错误 1