如何与QUOT;复位"一个Arduino板? [英] How to "reset" an Arduino board?

查看:389
本文介绍了如何与QUOT;复位"一个Arduino板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经上传了草图以一个Arduino的乌诺循环是这样的:

I've uploaded a sketch to an Arduino Uno whose loop is something like this:

void loop(){
    Serial.println("Hello World");
}

所以,现在,我不能再上传任何东西,因为IDE中使用的端口已说。

So, now, I can't upload anything anymore, because the IDE says "port already in use".

有没有一种方法来重置的Arduino没有其他程序员?

Is there a way to "reset" the Arduino without another programmer?

编辑:结果
    闲来无事正在使用的串口,直到我上载的previous草图一切都刚刚好。

EDIT :
Nothing else is using the serial port, and everything went just fine until I uploaded the previous sketch.

编辑:结果
    我发现了一些有趣的事情:

EDIT :
I've found some interesting things:

推荐答案

请尝试以下操作:


  1. prepare基本空的程序(空设置,环路等)

  2. 编译。

  3. 使用芯片上的硬件按钮复位Arduino的

  4. preSS <大骨节病>控制 + <大骨节病> U 上传code。

  5. 如果不成功 - 得3

  1. Prepare the basic empty program (empty setup, loop, etc.)
  2. Compile it.
  3. Reset the Arduino using the hardware button on the chip
  4. Press Ctrl + U to upload your code.
  5. If unsuccessful - got to 3.

有是引导加载程序启动程序之前,就在你的工作时序延迟。它的工作对我来说,当我的Arduino的code错误正在执行软复位每500&NBSP;毫秒

There is a delay before the boot loader starts the programs, just work on your timing. It worked for me when a bug in my Arduino's code was executing a soft reset every 500 ms.

这篇关于如何与QUOT;复位&QUOT;一个Arduino板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆