I2C2 and SPI1 at the same time
Posted: Tue Jan 21, 2014 6:36 pm
Hi,
I am working with a STM32F103ZET and first I had I2C2 and SPI2 at the same time in use. SPI worked fine, I2C didn't.
Using the scope I could see that the HWaddr was send out but no no response from the slave was on the wire.
When I disable SPI I2C works perfect.
Then I saw this other post here in the Forum stating I2C2 and SPI2 at the same time does not work due to DMA.
Then I rewired my SPI to SPI1 thinking that this is using a different DMA.
Doing the test above I see the very same behaviour. SPI1 works and I2C2 sends out only the HWaddr.
I can't belive the STM hardware is so restricted in use.
Does anybody have a idea why this does not work?
Is this a restriction in Chibios or the STM HW?
Thanks for your help.
Michael
I am working with a STM32F103ZET and first I had I2C2 and SPI2 at the same time in use. SPI worked fine, I2C didn't.
Using the scope I could see that the HWaddr was send out but no no response from the slave was on the wire.
When I disable SPI I2C works perfect.
Then I saw this other post here in the Forum stating I2C2 and SPI2 at the same time does not work due to DMA.
Then I rewired my SPI to SPI1 thinking that this is using a different DMA.
Doing the test above I see the very same behaviour. SPI1 works and I2C2 sends out only the HWaddr.
I can't belive the STM hardware is so restricted in use.
Does anybody have a idea why this does not work?
Is this a restriction in Chibios or the STM HW?
Thanks for your help.
Michael