|
我现在的步骤:1、去 arduino 官网下载安装了 Arduino IDE
2、根据这个链接,我把 CH340 的驱动下载安装,并配置好了,在 Arduino 的 工具 -> 端口 里面也可以看到相应的端口
http://javacolors.blogspot.tw/20 ... -ch341-chipset.html
3、根据《gokit2代Arduino底板程序编译及下载教程》 去下载了相应的代码,并按教程把相应的文件和目录都放到了对应的目录下
http://club.gizwits.com/forum.ph ... &extra=page%3D1
- ➜ Arduino pwd
- /Users/bob/Documents/Arduino
复制代码- ➜ Arduino ls libraries
- ChainableLED DHT I2Cdev MemoryFree MsTimer2 SSD1306 readme.txt
复制代码- ➜ Arduino ls GoKit-Arduino-MCU/gokit_2
- GoKit.cpp GoKit.h gokit_2.ino protocol.cpp protocol.h
复制代码 4、然后通过 Arduino 的验证,发现没有问题,然后点击上传,就报了以下的错误(我把显示详细输出的,上传勾上了)
- Sketch uses 13,732 bytes (42%) of program storage space. Maximum is 32,256 bytes.
- 全局变量使用了1,470字节,(71%)的动态内存,余留578字节局部变量。最大为2,048字节。
- /Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.wchusbserial1420 -b115200 -D -Uflash:w:/var/folders/3n/v7ncqzx53zjgv3tcd74zb6kc0000gn/T/build2421517229242112148.tmp/gokit_2.cpp.hex:i
- avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
- Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
- Copyright (c) 2007-2009 Joerg Wunsch
- System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
- User configuration file is "/Users/bob/.avrduderc"
- Using Port : /dev/cu.wchusbserial1420
- Using Programmer : arduino
- Overriding Baud Rate : 115200
- avrdude: stk500_recv(): programmer is not responding
- avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
- avrdude: stk500_recv(): programmer is not responding
- avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
- avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
- avrdude done. Thank you.
- 上传出错。查看页面 http://www.arduino.cc/en/Guide/Troubleshooting#upload 获取建议。
复制代码
然后在网上搜了一些资料,找到一个这个:Arduino Sketch upload issue - avrdude: stk500_recv(): programmer is not responding 看了一下回复,大约是在上传的时候按下 reset 键就可以了,我按了 usb 电源左边的那个红键也看不出任何变化,还是报原来的错。
希望大家帮忙看一下是哪里有问题,谢谢!
|
|