极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 14135|回复: 0

32u4烧录程序的问题

[复制链接]
发表于 2017-11-12 02:09:17 | 显示全部楼层 |阅读模式
本帖最后由 Stormer 于 2017-11-14 10:00 编辑

各种鼓捣之下,终于把BOOTLOADER烧录到32U4了。

USB和串口设备显示正常,USB设备名称就是ARDUINO LEONARDO。

然而用IDE给它烧录程序的时候,烧录信息的啰嗦模式不停的显示查找串口设备,到最后烧录失败,提示找不到相应的串口设备。

而且诡异的是烧录一次以后,USB设备和串口都消失了。 我得重新拔了USB插口,再插上,就又恢复出来了。

这会是哪的问题? 一个一个的连环坑……

IDE报错信息:
Arduino: 1.8.5 (Mac OS X), Board: "Time Box"
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.pci-serial22, /dev/cu.serial1, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.pci-serial22, /dev/tty.serial1, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.pci-serial22, /dev/cu.serial1, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.pci-serial22, /dev/tty.serial1, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.pci-serial22, /dev/cu.serial1, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.pci-serial22, /dev/tty.serial1, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.pci-serial22, /dev/cu.serial1, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.pci-serial22, /dev/tty.serial1, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.pci-serial22, /dev/cu.serial1, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.pci-serial22, /dev/tty.serial1, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.pci-serial22, /dev/cu.serial1, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.pci-serial22, /dev/tty.serial1, } => {}
Couldn't find a Board on the selected port. Check that you have the correct port selected.  If it is correct, try pressing the board's reset button after initiating the upload.


PS:下图中的TimeBox就是Arduino Leonardo,我只是在boards.txt里修改过名字而已,用Leonardo的板子烧录正常。




查了些资料,看见有的说在IDE里点击 upload上传程序的时候,马上按下RESET键。然后出现的报错不一样了,连接不到编程器。



---------------------------

我现在用ARDUINO UNO做ISP烧录器,可以给它成功烧录程序了。

奇怪为什么直接插USB线给它烧录不了。



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 需要先绑定手机号

Archiver|联系我们|极客工坊

GMT+8, 2024-4-25 20:18 , Processed in 0.041836 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表