Page 1 of 1

STM32F411xx allowed I2C1 DMA streams

Posted: Sat Sep 30, 2017 2:47 pm
by kimmoli
Code limits I2C1_TX streams to 6 and 7. According to datasheet, also stream 1 is valid selection for I2C1_TX

Image

Proposed change in STM32F411xx STM32_I2C1_TX_DMA_MSK

Code: Select all

diff --git a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
index 941deff..bff17ba 100644
--- a/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
+++ b/os/hal/ports/STM32/STM32F4xx/stm32_registry.h
@@ -1594,7 +1594,8 @@
                                              STM32_DMA_STREAM_ID_MSK(1, 5))
 #define STM32_I2C1_RX_DMA_CHN               0x00100001
 #define STM32_I2C1_TX_DMA_MSK               (STM32_DMA_STREAM_ID_MSK(1, 7) |\
-                                             STM32_DMA_STREAM_ID_MSK(1, 6))
+                                             STM32_DMA_STREAM_ID_MSK(1, 6) |\
+                                             STM32_DMA_STREAM_ID_MSK(1, 1))
 #define STM32_I2C1_TX_DMA_CHN               0x11000000

 #define STM32_HAS_I2C2                      TRUE

Re: STM32F411xx allowed I2C1 DMA streams

Posted: Sun Oct 01, 2017 3:05 pm
by Giovanni
Fixed as bug #889.

Giovanni