开源改变世界

SERIAL_PORT 大于 4 #580

推推 grbl 2年前 (2023-02-05) 207次浏览
关闭
forrestg 打开了这个问题 2013 年 8 月 25 日 · 2 条评论
关闭

SERIAL_PORT 大于 4#580

forrestg 打开了这个问题 2013 年 8 月 25 日 · 2 条评论

评论

SERIAL_PORT 大于 4 #580
贡献者

嗨,我想从 sprinter 切换到 marlin,但我无法编译 marlin fw。
因为我需要在 configuration.h 中设置#SERIAL_PORT 4
但是编译器让我

在 /Marlin.h:37 包含的文件中,
来自 cardreader.cpp:1:
/MarlinSerial.h:在成员函数“int MarlinSerial::available()”中:
MarlinSerial.h?错误:“rx_buffer”未在此范围
/MarlinSerial.h 中声明:在成员函数“void MarlinSerial::write(uint8_t)”中:
MarlinSerial.h:105:错误:“UCSR4A”未在此范围内声明
MarlinSerial.h :105:错误:“UDRE4”未在此范围内声明
MarlinSerial.h:108:错误:“UDR4”未在此范围内声明
/MarlinSerial.h:在成员函数“void MarlinSerial::checkRx()”中:
MarlinSerial .h:114: 错误:’UCSR4A’ 未在此范围内声明
MarlinSerial.h:114: 错误:’RXC4′ 未在此范围内声明
MarlinSerial.h:115: 错误:’UDR4′ 未在此范围内声明
MarlinSerial.h:116: 错误:未在此范围内声明“rx_buffer”

这有什么不好?
非常感谢

SERIAL_PORT 大于 4 #580
贡献者

因为我需要在 configuration.h 中设置#SERIAL_PORT 4

为什么?
你用什么板?
如果将其设置为 4,它将无法编译,并且预计会出现上述错误…

米。