TouchGFX would stuck with SPI LCD and NO RTOS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-12 4:59 AM
Hi,
I have made this very simple project, when I step into code and just change the vsync_sem in debuge to 1 to force a render, The code would just call this function
HAL::getInstance()->backPorchExited();
and never would retrun, it would stuck in there, How should I resolve this issue?
I expect the this force a call of this function
void TouchGFXHAL::flushFrameBuffer(const touchgfx::Rect& rect)
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-13 2:12 AM
Hello,
Can you give more information about what you are trying to do as well as your hardware setup and the GUI you want to display ?
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-15 4:07 AM
A simple test, I just hand edited this function, to false
lockDMAToFrontPorch(false);
Now it would render! am I missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-17 12:11 AM
Hello,
Can you display some GUI on your screen ?
If by just adding lockDMAToFrontPorch(false); you can render but still not see anything on the display, it seems to me that the transfer of the rendered frame from RAM to Screen is not working properly.
lockDMAToFrontPorch() when set to true, means that the DMA will not fill the framebuffer before the whole frame is sent to the display. This prevents corruption of the framebuffer when the DMA is quicker than the sending of the frame. Of course this reduce performance but it usually prevents from seeing artifacts. If it was stuck when lockDMAToFrontPorch(true), this can mean that the framework was waiting for the previous frame to be sent before rendering again with DMA2D.
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-18 12:13 AM
Thanks for the feedback, I can see GUI on screen, But shouldn't I change this code manualy!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-18 2:48 AM
What is "this code" ?
If you are talking about lockDMAToFrontPorch(), yes you can add this line manually in the TouchGFXHAL.cpp. This file is meant for the developer to edit it however he wants.
/Alexandre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-18 4:44 AM
changing the lockDMAToFrontPorch() to false;
thanks for the help
