2019-08-18 03:58 AM
2019-08-18 09:12 AM
Probably need to find something close and port
https://github.com/afiskon/stm32-ili9341
https://vivonomicon.com/2018/06/17/drawing-to-a-small-tft-display-the-ili9341-and-stm32/
2019-08-18 07:14 PM
Thank you Clive. I have succeed in controlling the ILI9341 in SPI but can never get the SPI to work with DMA, any idea?
2019-08-19 01:08 AM
> can never get the SPI to work with DMA
Show us what did you do.
DMA for Tx is as much as (assuming DMA clock is alrady enabled in RCC):
JW
2019-08-19 05:50 AM
The problem with using DMA on these low end LCD controllers is the cycle time between commands. The datasheet is vague on just what the minimal time between two commands should be. On the IL9341 it seems to imply 450us between reads, but it isn't clear if that's for GRAM only or some registers. There's a separate cycle time for ID read, so my guess is the cycle times vary considerably based on what you're doing.
Unfortunately that means you can't just send a long string of DMA commands at the fastest clock rate. Either one SPI clock cycle has to be the longest possible cycle time for the LCD controller, or you have to pause the DMA between each command, in which case there's really no benefit in using DMA.
Jack Peacock