I took a closer look at the problem.
It seems to me that the DMA definitions are incorrect for the F091 section of STM32F0xx/stm32_registry.h and mcuconf.h.
Don't have time to verify all the device DMAs now but just check the RM0091 DMA section Table 31 for the assignments.
You'll see I2C1 is on DMA1, Stream 0, ch 1 & 2 (0 numbered) and on DMA1 Steam 2 ch 1 & 2 but definitions do not reflect this.
(Watch out for that channel numbering which is 1 numbered in table 31 but needs 0 numbered in DMA definitions.)
Fixes required in mcuconf.h and also in STM32F0xx/stm32_registry.h so that the xxx_DMA_CHN definitions are correct.
Probably good to review all the DMA definitions in STM32F0xx/stm32_registry.h
e.g. Example fix for I2C1_RX in STM32F0xx/stm32_registry.h...
Code: Select all
#define STM32_HAS_I2C1 TRUE
#define STM32_I2C1_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 0) |\
STM32_DMA_STREAM_ID_MSK(1, 2))
#define STM32_I2C1_RX_DMA_CHN 0x00000202Bob