Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arduino花了很长时间上传草图_Arduino - Fatal编程技术网

Arduino花了很长时间上传草图

Arduino花了很长时间上传草图,arduino,Arduino,我正在使用Arduino Uno板,并使用Windows 10系统对其进行编程。从Arduino网站上的教程中,我尝试上载以下代码: void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: int sensorValue = analogRead(A0);

我正在使用Arduino Uno板,并使用Windows 10系统对其进行编程。从Arduino网站上的教程中,我尝试上载以下代码:

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:
  int sensorValue = analogRead(A0);
  Serial.println(sensorValue);
  delay(1);
}
它经历了一系列问题:

首先,,
avrdude:ser\u open():无法打开设备“\\.\com3”

我搜索了他的问题,发现最常见的解决方案是转到设备管理器并更改端口名称,然后拔下arduino板并再次插入。是我干的

第二,

C:\Program Files (x86)\Arduino\hardware\tools\axr\bin\avr-ar:
unable to rename 'core.a'; reason: file exists\\
我想这可能是一个记忆问题。我使用电路板上的重置按钮,重复从解决方案到第一个问题的步骤。我试图再次上传代码

但是现在,我没有收到任何错误消息。但问题是上传代码要花很长时间。很长一段时间以来,我看到
上传…
状态。绿色进度条也已完成,但目前尚未完成上传


理解和解决此问题的任何帮助都将不胜感激。

我的解决方案是使用任务管理器禁用苹果的“你好”服务。

检查简单解决方案的一些简单步骤:关闭Arduino IDE,拔下Arduino USB电缆,重新打开Arduino IDE,检查串行端口(在“工具”下),插入USB,再次检查串行端口以查看显示的COM端口。选择刚出现的COM端口。@Calum,谢谢!试过了,还是一样,没有改进!