MakerLab创客实验室 — Let's Make something.
现在注册
已注册用户请 登入
战斗鸡 large avatar
MakerLab创客实验室  ›  3d打印机

我用marlin v1固体上传,为什么上传失败?

By 战斗鸡 at 2 年前 , 2306 次浏览

我的是ramps1.4,arduino2560,和12864官方屏,我想测试测试,只修改了#define MOTHERBOARD 33,和// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
//
// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
我只把#define前的//的删掉了,编译是没问题,但上传却出现以下代码

Sketch uses 126,406 bytes (48%) of program storage space. Maximum is 258,048 bytes.
Global variables use 4,981 bytes (60%) of dynamic memory, leaving 3,211 bytes for local variables. Maximum is 8,192 bytes.
avrdude: ser_open(): can't open device "\.\COM3": 系统找不到指定的文件。

avrdude: ser_drain(): read error: 句柄无效。

processing.app.debug.RunnerException
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:129)
at processing.app.Sketch.upload(Sketch.java:1672)
at processing.app.Sketch.exportApplet(Sketch.java:1578)
at processing.app.Sketch.exportApplet(Sketch.java:1550)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2399)
at java.lang.Thread.run(Unknown Source)
Caused by: processing.app.debug.RunnerException: Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:127)
... 5 more
求大佬解释!!!

5 回复
Andy medium avatar
#1 - 2 年前
Andy

可能是以下原因造成的,但都是串口相关。
1、串口选择错误;
2、串口被其它软件占用,断开其它软件的连接;

战斗鸡 medium avatar
#2 - 2 年前
战斗鸡

我知道了,我用上位机连接着

战斗鸡 medium avatar
#3 - 2 年前
战斗鸡

对了,屏幕有卡顿,在哪里调??