《STM32F030x4x6x8xC勘误手册》中DMA部分如下描述,最后一句解决方案什么意思呢? Workaround The only way to lock GPIOx_OTYPER with i=15..8 is to lock also GPIOx_OTYPER[i-8]. 勘误手册描述: 2.3 DMA 2.3.1 DMA disable failure and error flag omission upon simultaneous transfer error and global flag clear Description Upon a data transfer error in a DMA channel x, both the specific TEIFx and the global GIFx flags are raised and the channel x is normally automatically disabled. However, if in the same clock cycle the software clears the GIFx flag (by setting the CGIFx bit of the _IFCR register), the automatic channel disable fails and the TEIFx flag is not raised. This issue does not occur with ST's HAL software that does not use and clear the GIFx flag, but uses and clears the HTIFx, TCIFx, and TEIFx specific event flags instead. Workaround The only way to lock GPIOx_OTYPER with i=15..8 is to lock also GPIOx_OTYPER[i-8]. |
勘误手册写错了,将上文对GPIO的内容写到了DMA;猜测DMA解决办法这里,只需要清除相对应的标志就行。 |
关于stm32g431串口与FDCAN数据不同同时处理问题
STM32H750使能DCache后用DMA会导致程序异常问题
SPI DMA发送不成功的问题
串口IDLE标识被自动清除
求助STM32L010F4P6的USART2使用DMA只能接收一个字节!
使用DMA通道4开启串口1,开启中断之后,程序错乱
在STM32F407上使用DMA给TIM2的CCR4写值,输出固定个数PWM波个数时,遇见了CCR4的高位与低位同时被写入相同的值
求助,关于STM32 HAL库 SPI怎么发送16位宽度数据问题
为什么DMA半传输中断和完全传输中断不能独立关闭?
STM32H743定时器触发DMA采集GPIO口的状态