我需要使用相同的程序来编程多个不同的微控制器与avrdude。为此,我需要识别连接到的微控制器的设备签名,以使用正确的avrdude命令。我发现在软件中这样做的唯一方法是用不正确的微控制器调用avrdude,并读取它给设备签名的结果。我正在尝试使用popen()来读取avrdude的输出,但是我什么也没有得到。-n -q -p x192d3 -c avrisp2", "r");
printf("Unable to open
因此,我决定尝试在我的Linux机器上使用arduino,但是它会在大约7秒左右中断连接。我在一篇关于Micros的旧文章上读到,我需要点击重置按钮,快速上传眨眼的例子。因为那是港口工作的时候。sync: resp=0x3favrdude: stk500_getsync=0x3f
avrdude: stk500_getsync() attempt 6 of 10: not in sync:
avrdude: butterfly_recv(): programmer is not respondingavrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmeravrdude: error: buffered memory access not supporte