Question
Cube MX not generates lockDMAToFrontPorch(true);
Hello!
I have old project. It has file TouchGFXGeneratedHAL.cpp, where I can see code
void TouchGFXGeneratedHAL::initialize()
{
HAL::initialize();
registerEventListener(*(Application::getInstance()));
enableLCDControllerInterrupt();
enableInterrupts();
setFrameBufferStartAddresses((void*)0xD0000000, (void*)0xD0200000, (void*)0);
/*
* Set whether the DMA transfers are locked to the TFT update cycle. If
* locked, DMA transfer will not begin until the TFT controller has finished
* updating the display. If not locked, DMA transfers will begin as soon as
* possible. Default is true (DMA is locked with TFT).
*
* Setting to false to increase performance when using double buffering
*/
lockDMAToFrontPorch(true);
}I updated CubeMX and TouchGFXdesigner to last version, and I saw
void TouchGFXGeneratedHAL::initialize()
{
HAL::initialize();
registerEventListener(*(Application::getInstance()));
enableLCDControllerInterrupt();
enableInterrupts();
setFrameBufferStartAddresses((void*)0xD0000000, (void*)0xD0200000, (void*)0);
}String "lockDMAToFrontPorch(true);" lost.
And I see artifacts while widgeds moving.
A added string lockDMAToFrontPorch(true), artifacts disappeared.
But I need to put this string every time, I edit CubeMX project...
New version of TouchGFX not supports this option?
I found string "lockDMAToFrontPorch(false)" in file HALSDL2.cpp, but setting it to true has no effect.
Why?
