你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

stm32u5 Usart IDEL 中断 , DMA 读取数据。

[复制链接]
laoxiami2019 提问时间:2025-3-11 19:48 / 未解决

1 Where can I find related routines (LL library)? Reference F407 series for total commissioning is different. 2 Call hal idle USART interrupt did not receive 64k bytes, anyone can provide reference?

收藏 评论3 发布时间:2025-3-11 19:48

举报

3个回答
xmshao 回答时间:前天 14:27
我这边找到STM32U5系列开发板,基于UART中断方式做了一次性发送66000个数据的测试,


这个数据已经超过65535了。 我们只需要将库函数中关于UART结构体中的关于收发长度的变量


定义改为32位宽,相应的实现函数的变量稍微改动下即可完成。


我的测试时将最后26个元素存放a~z二十六个符号,其它按0~9和换行符的规律循环赋值。

rrr.png



你要调整的话也不难的实现。
xmshao 回答时间:前天 09:43
这里还要补充下,如果使用DMA方式进行收发,DMA的传输长度上限是64K没法改变,只能分多次传输。如果基于中断方式收发,倒是有机会将传输量加大,不过一般来讲,分批传也是正常的操作。

I will add a supplement here,t if using DMA for transmission, the maximum transmission length of DMA is 64K and cannot be changed, so it can only be transmitted in multiple times. If using interrupt-based transmission, there is a chance to increase the transmission volume, but generally speaking, batch transmission is also a normal operation.
xmshao 回答时间:前天 09:37
1 Where can I find related routines (LL library)? Reference F407 series for total commissioning is different.
==>可以肯定STM32U5有LL库,包括针对UART外设的LL库,但不一定有针对你当前应用的LL库工程代码。
不过,我在STM32U5的Cube库里看到一些针对UART外设的LL库例程,你完全可以参考。比方:
。。。\STM32Cube_FW_U5_V1.7.0\Projects\NUCLEO-U575ZI-Q\Examples_LL\USART



It can be confirmed that the STM32U5 has an LL library, including the LL library for the UART peripheral, but it may not have LL library
project code for your current application. However, I have seen some LL library examples for the UART peripheral in the STM32U5 Cube
library, which you can definitely refer to。for example:
。。。\STM32Cube_FW_U5_V1.7.0\Projects\NUCLEO-U575ZI-Q\Examples_LL\USART


2 Call hal idle USART interrupt did not receive 64k bytes, anyone can provide reference?
==》你是说一次性不能接收超过64Kbyte的数据吧。目前库是这样设计的。你要么分批传,要么自己重新组织下代码。
至于参考实现代码,我后面可以找时间看看如何实现。实现后告知你。我看了下,目前所有系列的最大传输大小都是以64K为限来设计的。


Are you saying that you can't receive more than 64Kbytes of data at a time? The current library is designed this way. You either send the data
in batches or reorganize the code yourself.As for the reference implementation code, I can look into how to implement it later. I will inform you
once it is done.According to my inspection and confirmation, the maximum transmission size for all series is currently designed to be limited to 64K.
关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版