CH340 arduino Nano寫入程序報(bào)錯(cuò)的解決方法
在使用改版的非原裝arduino Nano進(jìn)行程序?qū)懭霑r(shí),可能會遇到報(bào)錯(cuò)的情況。常見的錯(cuò)誤提示如下: avrdude: stk500_recv(): programmer is not respon
在使用改版的非原裝arduino Nano進(jìn)行程序?qū)懭霑r(shí),可能會遇到報(bào)錯(cuò)的情況。常見的錯(cuò)誤提示如下:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp0xf6
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp0xf6
錯(cuò)誤原因:
這個(gè)問題的原因是Arduino AVR Boards 1.6.21版本增加了對這些新電路板的支持,但新的Nano板定義與舊的Nano和大多數(shù)第三方Nano不兼容。
修改方法:
要解決這個(gè)問題,可以按照以下步驟進(jìn)行修改:
- 打開Arduino應(yīng)用的工具欄,選擇"Tools"(工具) gt; "Processor"(處理器) gt; "ATmega328P (Old Bootloader)"(ATmega328P舊引導(dǎo)程序)。
- 重新將程序上傳到Nano板上。
通過以上操作,再次寫入程序時(shí)就不會再出現(xiàn)報(bào)錯(cuò),而是會提示“上傳成功”。這是因?yàn)槲覀兪褂昧伺f引導(dǎo)程序來兼容改版的CH340 arduino Nano。