如何解决Arduino IDE中的digispark [未连接] 问题?

huangapple go评论64阅读模式
英文:

How can I solve digispark [not connected] problem in Arduino IDE?

问题

你好,我正在使用Digispark(Attiny85)进行项目开发。

我下载了Arduino IDE,然后将此URL(http://digistump.com/package_digistump_index.json)添加到附加板管理器URL中。
我安装了Digistump AVR Boards。
我选择了Digispark(Default - 16.5mhz)板,但在Arduino IDE界面的右下方我得到了这个:

如何解决Arduino IDE中的digispark [未连接] 问题?

这是我的设备管理器的样子:
如何解决Arduino IDE中的digispark [未连接] 问题?

英文:

Hello guys I'm working on a project using digispark (Attiny85).

I downloaded arduino IDE
then I added this URL (http://digistump.com/package_digistump_index.json) to Additional Boards Manager URLs.
I installed for Digistump AVR Boards.
I selected Digispark (Default - 16.5mhz) board but on the bottom right
of the Arduino IDE inteface I got this :

如何解决Arduino IDE中的digispark [未连接] 问题?

and this how my device manager looks:
如何解决Arduino IDE中的digispark [未连接] 问题?

答案1

得分: 1

免责声明:我使用的是Linux系统,而你很可能使用的是Windows。所有我的见解都基于我的本地PC和我拥有的Digispark克隆版。

当使用ATtiny85和Digispark上传工具时,你不会看到连接。因为ATtiny85没有USB模块,也没有添加其他用于USB的硬件组件,Digispark只在上电/复位后的5秒内作为USB设备进行通信。(例外情况:你刷写了支持USB的代码。)

如果你想刷写你的代码,请将Digispark从电脑断开连接,点击“上传”按钮,然后等待消息窗口显示以下消息:

现在插入设备...(60秒内会超时)

你可能需要扩大源代码下面的消息面板才能看到这个消息。

现在你有大约60秒的时间重新连接Digispark。请耐心等待,刷写过程需要一两秒钟才会开始。如果几秒钟后Digispark上传工具告诉你一切正常,那就没问题了。如果出现错误,它也会告诉你。

文档详细描述了这一过程,并提供了一些故障排除链接。

英文:

Disclaimer: I'm on Linux, and you are most probably on Windows. All my insight bases on my local PC and the clone of a Digispark I have.

When using the ATtiny85 and the Digispark Uploader, it is correct that you don't see a connection. Since the ATtiny85 has no USB module and no other hardware component for USB is added, the Digispark only communicates as USB device during the 5 seconds after power-up/reset. (Exception: You flash a sketch that does USB.)

If you want to flash your sketch, disconnect the Digispark from the PC, click the "upload" button and wait until the message window presents the message:

Plug in device now... (will timeout in 60 seconds)

You might need to enlarge the message panel below the source code to see this.

Now you have about 60 seconds to reconnect the Digispark. Be patient, it takes a second or more until the flashing begins. All is well if after some seconds the Digispark Uploader tells you so. In case of an error it will tell you this, too.

The documentation describes this in detail, and has some links for troubleshooting.

huangapple
  • 本文由 发表于 2023年7月3日 18:09:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76603760.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定