Unsure about STM32U5A9J-DK and slide transition - Reupload
Good day,
I'm rather new with TouchGFX and hope someone might be able to help me.
I've got the STM32U5A9J-DK, and I'm trying to use the slide transition between screens, I've been trying to read around and I've seen that I need to use the 'setFrameBufferStartAddresses(void* frameBuffer, void* doubleBuffer, void* animationStorage)' function in TouchGFXHAL.cpp file.
In the STM32CubeMX file, X-Cube-TouchGFX the frame buffer strategy is set to Double Buffer, and the buffer location is set to 'By Allocation'.
In TouchGFXHAL.cpp I did
void TouchGFXHAL::initialize()
{
TouchGFXGeneratedHAL::initialize();
// What I added!
TouchGFXHAL::setFrameBufferStartAddresses(frameBuffer0, frameBuffer1, frameBuffer2);
setAnimationStorage(frameBuffer2);
setButtonController(&btnctrl);
lockDMAToFrontPorch(false);
instrumentation.init();
setMCUInstrumentation(&instrumentation);
enableMCULoadCalculation(true);
}
I'm not sure if this works, I had tried to set everything by address, but then all I got was a black screen when uploading to the board. I might have been overlapping with some other memory region, I'm unsure how to figure that out.
Now at least I get the UI to display but the slide transition only plays in the simulator and not on the board.
I'm quite new at this and would greatly appreciate some help in this matter, thank you for taking the time to read this.
NOTE: This is a reupload due to a misunderstanding with my last post, I had a formatting error in the post. And wrote a reply to indicate that I fixed the formatting error. But due to my poor wording it was accepted as the solution to the post. That was not what I meant. I couldn't message the person that closed the post, so I repost this.
