文号
934124
阅读
5505
回复
3
收藏
0
求助:ch340G无法与atmega通讯
2024/07/12
原创
IP:广东
关键词:飞控,嵌入式

本人单片机小白,在尝试做飞控的途中遇到了一些问题

先看图


Schematic_2-控制-Arduino-2.0_2024-07-12.png 23EBE2CE0BEDE54AA6CE03ED1BD42A6E.png 27E37DBAE4A4AB738277C80FF55137F3.png

07A42C8140A43F787F1EAF4A54059D9B.jpg

目前遇到的问题是ch340G可以与电脑通讯,但尝试写入程序时报错,错误如下

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xde

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xde

请教一下各位大佬问题出在哪里,谢谢!

ps:pcb确实画的有一些问题,如没有正确差分走线,布线太乱等问题,如果有我没有发现的,也请大家发表高见,谢谢

2年4个月前修改于 2年4个月前IP:广东
934130
1楼

又到了日经的远程分布式云debug环节。芯片没有去耦电容其一,企图用7805把usb进来的5v又稳压成5V其二,正3V稳压器用的居然是7903其三,晶体和它的负载电容之间更是隔了十万八千里其四。显然你的整个板子上只有ch340一个直接接上usb就能动的东西在正常工作。

我建议单纯火箭爱好者直接买成品开源飞控就行了,要求每个对火箭感兴趣的人都得先学会电路设计程序设计嵌入式设计pcblayout显然不现实。

你想知道晶振有没有起振,串口波形正常否,你至少得有个示波器吧,买个示波器能买5个成品飞控了。


引用
评论(1)
8
2年4个月前IP:广东
934137
2楼

我的直觉告诉我你没刷写BootLoader sticker

引用
评论
1
jing_hy作者
2年3个月前IP:广东
934141
3楼
引用暮羽要摸鱼发表于2楼的内容
我的直觉告诉我你没刷写BootLoader[表情]


我尝试过用arduino刷Bootloader,但好像失败了,后续可能会尝试其他方法


引用
评论
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的