开源改变世界!!

出现编译错误,启用SD卡时 #13

推推 grbl 2年前 (2023-02-08) 149次浏览
关闭
MeKeCNC 开启了这个issue 2022 年 1 月 23 日 · 0 条评论
关闭

出现编译错误,启用SD卡时#13

MeKeCNC 开启了这个issue 2022 年 1 月 23 日 · 0 条评论

评论

出现编译错误,启用SD卡时 #13
贡献者
美客CNC 评论了 2022 年 1 月 23 日  

处理BTT_SKR_MINI_E3_V20_USB(板卡:genericSTM32F103RC;平台:ststm32;框架:stm32cube)
———————————— ———————————————- ———————————————- —————— 可以通过-v, --verbose选项
配置启用详细模式:https
://docs.platformio.org/page/boards/ststm32/genericSTM32F103RC.html 平台:ST STM32 (15.1.0) > STM32F103RC(48k RAM。256k 闪存)
硬件:STM32F103RCT6 72MHz、48KB RAM、256KB 闪存
调试:当前(blackmagic)外部(blackmagic、cmsis-dap、jlink、stlink)包

  • 框架-stm32cubef1 1.8.4
  • 工具-ldscripts-ststm32 0.2.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
    找到 51 个兼容库
    扫描依赖…
    依赖关系图
    |–
    |–
    |–
    |–
    |–
    |–
    |–
    |–
    |–
    |–
    |–
    在发布模式下
    构建 编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src \stm32f1xx_hal.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_adc.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_adc_ex.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_can.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_cec.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_cortex.o
    Compiling .pio\build \BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_crc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_dac.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_dac_ex.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\ src\stm32f1xx_hal_dma.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_eth.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_exti.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_flash.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_flash_ex.o
    Compiling .pio\build \BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_gpio.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_gpio_ex.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_hcd.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\ src\stm32f1xx_hal_i2c.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_i2s.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_irda.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_iwdg.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_mmc.o
    Compiling .pio\build \BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_nand.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_nor.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_pccard.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\ src\stm32f1xx_hal_pcd.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_pcd_ex.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_pwr.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_rcc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_rcc_ex.o
    Compiling .pio\build \BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_rtc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_rtc_ex.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_sd.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\ src\stm32f1xx_hal_smartcard.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_spi.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_sram.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_tim.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_tim_ex.o
    Compiling .pio\build \BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_uart.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_usart.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_hal_wwdg.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\ src\stm32f1xx_ll_adc.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_crc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_dac.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_dma.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_exti.o
    Compiling .pio\build \BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_fsmc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_gpio.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_i2c.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\ src\stm32f1xx_ll_pwr.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_rcc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_rtc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_sdmmc.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_spi.o
    Compiling .pio\build \BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_tim.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_usart.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\Src\stm32f1xx_ll_usb.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkHALDriver\ src\stm32f1xx_ll_utils.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\alarms.o
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\ grbl
    \
    coolant_control.o
    \BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\gcode.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\grbllib.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\ioports.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\ grbl\limits.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\maslow.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\motion_control.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\plugingrbl
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\ grbl
    \
    ngc_expr.o
    \BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\nvs_buffer.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\override.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\pid.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\ grbl\planner.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\protocol.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\regex.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\rbl
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\ grbl
    \
    settings.o
    \BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\state_machine.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\stepper.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\stream.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB \lib94d\grbl\stream.o 编译 .pio_SKR_B_Rbuild29BTT grbl\system.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\tool_change.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib94d\grbl\wall_plotter.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib482.\keypad
    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\libcab\ motors
    \
    trinamic.o
    \BTT_SKR_MINI_E3_V20_USB\lib0f3\sdcard\ymodem.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib4b5\Core\usbd_core.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib4b5\Core\usbd_ctlreq.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib4b5\ Core\usbd_ioreq.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib50a\Class\CDC\Src\usbd_cdc.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\lib00a\App\usb_device.o
    编译 .pio\build\BTT_SKR_MINI_E3_USBApp\V20 \usbd_cdc_if.o
    编译.pio \build\BTT_SKR_MINI_E3_V20_USB\lib00a\App \
    usbd_desc.o \BTT_SKR_MINI_E3_V20_USB\lib9cd\eeprom\eeprom_24LC16B.o Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib6e0\trinamic\common.o Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib6e0\trinamic\tmc2130.o Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib6e0\ trinamic\tmc2130hal.o Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib6e0\trinamic\tmc2209.o Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib6e0\trinamic\tmc2209hal.o Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\lib6e0\trinamic\tmc26x.o

    编译.pio\build\BTT_SKR_MINI_E3_V20_USB\lib6e0\ trinamic
    \
    tmc5160.o
    \BTT_SKR_MINI_E3_V20_USB\src\btt_skr_mini_e3_2.0.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\src\diskio.o
    编译 .pio\build\BTT_SKR_MINI_E3_V20_USB\src\driver.o
    编译 .pio\build\BTT_USflash_2\
    IT0_3ESKR_2 .pio\build\BTT_SKR_MINI_E3_V20_USB\src\i2c.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\main.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\serial.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\stm32f1xx_hal_msp. o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\stm32f1xx_it.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\syscalls.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\sysmem.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\system_stm32f1xx .o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\src\usb_serial.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkCMSISDevice\gcc\startup_stm32f103xe.o
    Compiling .pio\build\BTT_SKR_MINI_E3_V20_USB\FrameworkCMSISDevice\system_stm32f1xx.o
    Src\system_stm32f1xx.c:113 :0: 警告:“VECT_TAB_OFFSET”重新定义
    #define VECT_TAB_OFFSET 0x00000000U /*!< 向量表基本偏移字段。

:0:0: 注意:这是前面定义的位置
Archiving .pio\build\BTT_SKR_MINI_E3_V20_USB\libFrameworkCMSISDevice.a
Linking .pio\build\BTT_SKR_MINI_E3_V20_USB\firmware.elf
.pio/build/BTT_SKR_MINI_E3_V20_USB/lib0f3/sdcard/sdcard. o:在函数file_read': sdcard.c:(.text.file_read+0xe): undefined reference to f_read’.pio
/build/BTT_SKR_MINI_E3_V20_USB/lib0f3/sdcard/sdcard.o:在函数file_close': sdcard.c:(.text.file_close+0x8): undefined reference to f_close’.pio
/build/BTT_SKR_MINI_E3_V20_USB/lib0f3/sdcard/sdcard.o:在函数file_open': sdcard.c:(.text.file_open+0x16): undefined reference to f_open’.pio
/build/BTT_SKR_MINI_E3_V20_USB /lib0f3/sdcard/sdcard.o: 在函数sd_cmd_unmount': sdcard.c:(.text.sd_cmd_unmount+0x28): undefined reference to f_mount’
.pio/build/BTT_SKR_MINI_E3_V20_USB/lib0f3/sdcard/sdcard.o: 在函数sdcard_on_program_completed': sdcard.c:(.text.sdcard_on_program_completed+0x12): undefined reference to f_lseek’
.pio/build/BTT_SKR_MINI_E3_V20_USB/lib0f3/sdcard/sdcard.o: 在函数sdcard_mount': sdcard.c:(.text.sdcard_mount+0x30): undefined reference to f_mount ‘
.pio/build/BTT_SKR_MINI_E3_V20_USB/lib0f3/sdcard/sdcard.o:在函数scan_dir': sdcard.c:(.text.scan_dir+0x1a): undefined reference to f_opendir’sdcard.c
:(.text.scan_dir+0x38) 中:未定义对f_readdir' sdcard.c:(.text.scan_dir+0x114): undefined reference to f_readdir’sdcard.c
:(.text.scan_dir+0x124) 的引用:未定义对f_readdir' sdcard.c:(.text.scan_dir+0x176): undefined reference to f_closedir 的引用’
collect2.exe:错误:ld 返回 1 退出状态
*** [.pio\build\BTT_SKR_MINI_E3_V20_USB\firmware.elf] 错误 1
​​================= =============================================[失败] 18.81秒 ================================================= =============
环境状态持续时间


BTT_SKR_MINI_E3_V20_USB 失败 00:00:18.808
=========================================== ============== 1失败,0成功

终端将被任务重用,按任意键关闭它。

我的 platformio.ini 文件:
platformio.txt