MakerLab创客实验室 — Let's Make something.
现在注册
已注册用户请 登入
yyliang92 large avatar
MakerLab创客实验室  ›  固件

在makerlab上的STM32版本的Marlin固件好像没有LCD和SD卡的功能,我想添加12864显示和SD卡脱机打印的功能,打开宏定义编译出错,求指导

By yyliang92 at 一年前 , 2425 次浏览

打开#define REPRAP_DISCOUNT_SMART_CONTROLLER
或者打开#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
或者#define MAKRPANEL
都出现以下错误:
Arduino:1.5.8 (Windows XP), 板:"STduino(USB_To_Serial)"

使用库 Wire 在文件夹: E:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\libraries\Wire (legacy)

使用库 U8glib 在文件夹: E:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\libraries\U8glib (legacy)

使用库 LiquidCrystal 在文件夹: E:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\libraries\LiquidCrystal

使用库 SPI 在文件夹: E:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\libraries\SPI (legacy)

E:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -ffunction-sections -fdata-sections -fno-zero-initialized-in-bss -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=158 -DARDUINO_STduino -DARDUINO_ARCH_STM32 -DSTM32F10X_HD -mthumb -DUSB_VID=0x10C4 -DUSB_PID=0xEA60 -DUSBCON -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="STduino" -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/libstm -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/libstmf4 -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/CMSIS/CMSIS/Include/ -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/CMSIS/Device/ST/ -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\cores\arduino -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\variants\som -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\libraries\Wire -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\libraries\U8glib -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\libraries\LiquidCrystal\src -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\libraries\SPI C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\BlinkM.cpp -o C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\BlinkM.cpp.o

E:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -ffunction-sections -fdata-sections -fno-zero-initialized-in-bss -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=158 -DARDUINO_STduino -DARDUINO_ARCH_STM32 -DSTM32F10X_HD -mthumb -DUSB_VID=0x10C4 -DUSB_PID=0xEA60 -DUSBCON -DUSB_MANUFACTURER="Unknown" -DUSB_PRODUCT="STduino" -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/libstm -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/libstmf4 -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/CMSIS/CMSIS/Include/ -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\system/CMSIS/Device/ST/ -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\cores\arduino -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\variants\som -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\libraries\Wire -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\libraries\U8glib -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\libraries\LiquidCrystal\src -IE:\BACKUP\arduino-1.5.8-windows\arduino-1.5.8\hardware\arduino\stm32\libraries\SPI C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\cardreader.cpp -o C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\cardreader.cpp.o

In file included from C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\SdFile.h:27:0,
from C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\cardreader.h:8,
from C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\cardreader.cpp:2:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\SdBaseFile.h:38:8: error: using typedef-name 'fpos_t' after 'struct'
struct fpos_t {
^
In file included from C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\Marlin.h:10:0,
from C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\build7829127254593425967.tmp\cardreader.cpp:1:
e:\backup\arduino-1.5.8-windows\arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\arm-none-eabi\include\stdio.h:56:17: note: 'fpos_t' has a previous declaration here
typedef _fpos_t fpos_t;
^
编译有误。

3 回复
Andy medium avatar
#1 - 一年前
Andy

是的,sd功能肯定不能直接用,需要重新移植sd卡代码

yankui medium avatar
#3 - 6 个月前
yankui

请问这个固件 在哪儿下载啊