Stormer 发表于 2017-11-12 02:09:17

32u4烧录程序的问题

本帖最后由 Stormer 于 2017-11-14 10:00 编辑

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

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

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

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

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

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线给它烧录不了。



页: [1]
查看完整版本: 32u4烧录程序的问题