Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/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 avrdude.exe:无效的文件格式'';设置AVR studio 6外部工具后出现更新说明符错误_Arduino_Avr_Avrdude - Fatal编程技术网

Arduino avrdude.exe:无效的文件格式'';设置AVR studio 6外部工具后出现更新说明符错误

Arduino avrdude.exe:无效的文件格式'';设置AVR studio 6外部工具后出现更新说明符错误,arduino,avr,avrdude,Arduino,Avr,Avrdude,在以下教程的帮助下,我已将avr studio 6设置为Arduino IDE: 我添加了教程中描述的外部工具,并使用了以下参数: -CC:\Program Files (x86)\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf -v -v -patmega328p -carduino -P\\.\COM4 -b57600 -D -Uflash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i 当我尝试

在以下教程的帮助下,我已将avr studio 6设置为Arduino IDE:

我添加了教程中描述的外部工具,并使用了以下参数:

-CC:\Program Files (x86)\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf -v -v -patmega328p -carduino -P\\.\COM4 -b57600 -D -Uflash:w:"$(ProjectDir)Debug\$(ItemFileName).hex":i
当我尝试闪存Arduino Uno板时,会导致以下错误:

avrdude.exe: invalid file format '\Users\UserName\Documents\ElectronicsProjects\bt-controller\software\gamecontroller\snes-controller\Debug\snes-contro.' in update specifier
avrdude.exe: error parsing update operation 'flash:w:C:\Users\UserName\Documents\ElectronicsProjects\bt-controller\software\gamecontroller\snes-controller\Debug\snes-contro.'

我尝试重命名其中一个文件夹,因为第一次其中一个名称包含空格。然而,这个问题仍然存在。参数中是否有任何设置需要更改?

我做了相同的设置,触发“Tools\Send to Arduino UNO”后,它返回了完全相同的错误消息。 我刚刚将Arduino IDE安装在\C:,一个文件名中没有空格的文件夹中(实际上我也忘记了正确的COM端口号…)来修复它

正确的字符串似乎是: -CC:\Arduino\hardware/tools/avr/etc/avrdude.conf-v-p atmega328p-c Arduino-p COM6-b 115200-D-U flash:w:“$(ProjectDir)Debug\$(ItemFileName).hex”:i

波特率(-b 11500)可能不同,文件路径必须正确。
此外,如果我在flash之前点击最左边窗口中的项目名称,程序只会看到右文件名(在我的版本中)。。。否则它会查找main.hex文件,但找不到它…

看起来我是通过将arduino-1.0.1文件夹从程序文件中移出并直接在c:驱动器上找到它的。现在,avrdude在一瞬间对电路板进行编程。