Other Parts Discussed in Thread: HALCOGEN
I am using freeRTOS with MPU support and have created a task that has a non-cached shared memory so that the task can modify the buffer in shared screen buffer memory and the the DMA can access it to write to MibSPI.
I have created another task (in privilege mode) that updates the same screen buffer but MCU caches it and just lets the other task handle the DMA operation to copy to mibspi.
The problem is that the DMA transfer never sees the updates made by the other task.
I would like to know how to force the MCU to write back the cache data to sram so that the DMA can readout the expected data.