STM32F411xx allowed I2C1 DMA streams Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
User avatar
kimmoli
Posts: 26
Joined: Sat Oct 01, 2016 8:02 pm
Has thanked: 11 times
Been thanked: 8 times

STM32F411xx allowed I2C1 DMA streams

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32F411xx allowed I2C1 DMA streams

Post by Giovanni »

Fixed as bug #889.

Giovanni
Post Reply