ilg-archived / qemu

The GNU MCU Eclipse QEMU
http://gnuarmeclipse.github.io/qemu/
Other
205 stars 78 forks source link

qemu-system-gnuarmeclipse: cortex-m4 stm32 - how can I communicate between peripheral? #67

Closed MarkOstis closed 5 years ago

MarkOstis commented 5 years ago

Hi Guys,

I am trying to add the SPI and DMA peripherals to qemu-system-gnuarmeclipse stm32. I have already added initialization of the SPI and DMA. Now I am thinking, how two different peripherals can communicate between them-self.

From the STM32F4 datasheet the SPI should notify the DMA that the data has been sent. So, does QEMU is able to raise event via SPI which will be handled by DMA?

Thanks!

ilg-ul commented 5 years ago

I have no experience with DMA on QEMU, I suggest you take a look at the more complicated devices, the existing Cortex-M devices do not support DMA.

But even if you manage to enable DMA for SPI, to what device will it communicate?


For other questions and support, please use the project forum.