You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AZ-Delivery ATmega328开发板程序上传失败及Bootloader烧录问题求助

解决Arduino Bootloader烧录后上传程序的stk500同步错误

核心修复步骤

1. 严格匹配板型与Bootloader

你烧录时选择了Arduino Nano / ATmega328P (Old Bootloader),上传程序时必须完全对应这个配置:

  • 打开Arduino IDE「工具」菜单
  • 板卡:选择Arduino Nano
  • 处理器:选择ATmega328P (Old Bootloader)
  • 端口:选择CH340驱动对应的串口(Windows看设备管理器,Linux/macOS看/dev目录)

2. 烧录后断开ISP接线

烧录Bootloader完成后,必须拔掉原装Uno与AZ-Delivery板之间的所有ISP接线(10、11、12、13、5V、GND这些),再用USB线连接AZ-Delivery板到电脑上传程序——ISP引脚会干扰串口通信,导致同步失败。

3. 检查Bootloader烧录的细节

  • 确认RES引脚的10µF电容极性正确:长脚(正极)接RES,短脚(负极)接GND
  • 烧录Bootloader前,确保ArduinoISP程序已经成功上传到原装Uno,烧录过程中IDE没有报错
  • 若之前选错板型烧录过Bootloader,重新烧录一次,严格选择Arduino Nano / ATmega328P (Old Bootloader)

4. 硬件与驱动排查

  • 检查CH340驱动是否正常:设备管理器中无黄色感叹号,或能识别对应的串口设备
  • 更换USB线(部分廉价线只有充电功能,无数据传输)
  • 重启IDE和开发板,再尝试上传

错误细节参考

上传程序时出现的错误:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x42

此前选错板型烧录后出现的错误:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x31

烧录Bootloader时的接线:

  • 10 → RES
  • GND → GND(RES与GND之间接10µF电容)
  • 11 → 11
  • 12 → 12
  • 13 → 13
  • 5V → 5V

内容的提问来源于stack exchange,提问作者Lili Müller

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.16 22:42:39