Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于CubeMx生成的工程中,dma初始化在uart初始化之后,造成串口dma传输失败的问题 #173

Open
sytnocui opened this issue Mar 24, 2023 · 1 comment

Comments

@sytnocui
Copy link

稚晖君您好,我最近在使用stm32f103c8t6开发的时候,遇到了 cubemx生成的工程uart dma传输失败的问题,经过debug发现是cubemx生成的工程的初始化部分 dma初始化在uart初始化之后,如图,我手动将其调整到uart初始化之前,就好使了。如
M2%1{U3MW2OT`T C6 O8YJL

但是比较郁闷的是,这个问题好像是随机出现的,我的另一个工程就是dma在uart初始化之前,如图
F1@JE51UX0MYHOE2ICUUIL6

请问您遇到过这个问题吗,如果遇到过,是怎么避免的呢,我现在好像只能每次都手操将其位置改变一下,但如果使用cubemx重新生成代码,还要再次手动改变位置

@AingSu
Copy link

AingSu commented Apr 7, 2023

cubemax是可以修改初始化顺序的,在project Manager -> Advanced settings 中可以设置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants