Uart DMA IDLE vs FreeRtos tasks
Hi! If I have a running FreeRtos task that for example is sending data with SPI, will ILDE event (callback) from uart dma affect the SPI? If so how to prevent this and at the same time dont lose data from uart?
Hi! If I have a running FreeRtos task that for example is sending data with SPI, will ILDE event (callback) from uart dma affect the SPI? If so how to prevent this and at the same time dont lose data from uart?
Hello @oeliks
If both peripherals are not using the same resources (DMA channel or interrept ..) and both executing in the same task, this will depend on the speed of the SPI bus and the size of the data being transferred. For example, for small data transfers, such as 4 bytes, using DMA may be excessive overhead. In this case a spin wait may be reasonable. For faster SPI bus, this approach may not be feasible.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.