MTD data corruption issue when written with DMA from different threads

2023-06-22 Thread Oleg
Hi all, I'm working with custom stm32f7 board and PX4 old fork, where I have my module that writes in several chunks some data (289 bytes) inside one of the partition of MTD mx25lx at SPI1, while there is PX4 params module that autosave parameters on changes in another partition of the same MTD.

Re: MTD data corruption issue when written with DMA from different threads

2023-06-22 Thread Petro Karashchenko
Hi, Could you please add some more information about the configuration like "CONFIG_STM32F7_DMACAPABLE", "CONFIG_SPI_TRIGGER", "CONFIG_STM32F7_SPIx_DMA_BUFFER" and "CONFIG_STM32F7_SPI_DMATHRESHOLD". Also the D-cache configuration like "CONFIG_ARMV7M_DCACHE_WRITETHROUGH". I do not see obvious issu