2020-07-02 01:37 AM
Hi,
I have a MIPI DSI display on L4R9, can I use the TouchGFX Cube Generator to generate a project?
My development environment is 4.13 with CubeIDE 1.3.1 and MX 5.6.1
Thanks
2020-07-03 03:22 AM
Yes you can.
https://support.touchgfx.com/docs/development/touchgfx-hal-development/scenarios/scenarios-fmc
It's the same procedure as with FMC/SPI currently, because we cannot read all we want from CubeMX, yet. So you choose "Custom" display interface from the generator. "Custom" display interface means that you have to write some code inside TouchGFXHAL.cpp while for LTDC we can generate the driver for e.g. STM32F746G without user input. The difference from SPI/FMC is that you do not implement flushFrameBuffer() to transfer the pixel data to display, but use the DSI interrupts TE/EndOfRefresh to start transfers.
Check out the L4R9 Application template (V3+) from the designer we have and get some inspiration. It is based on the Generator.
/Martin