Skip to main content
Jack li1
Associate III
July 3, 2020
Question

How do I pause GFX when The screen is off??

  • July 3, 2020
  • 6 replies
  • 1563 views

I use the DSI screen and securely stop GFX when I close the screen。

This topic has been closed for replies.

6 replies

eng23
Senior
July 3, 2020

Hi,

I suspend TouchGFX task in RTOS:

osThreadSuspend(defaultTaskHandle);

I don't know if it is the best way, but it works.

Jack li1
Jack li1Author
Associate III
July 3, 2020

I tried this method but it crashed

Martin KJELDSEN
Principal III
July 3, 2020
NVIC_DisableIRQ(LTDC_IRQn);

(For LTDC setup). This stops the "tick" and TouchGFX Engine will wait on a semaphore until the interrupt is enabled again.

Jack li1
Jack li1Author
Associate III
July 7, 2020

Using this method results in programs executing only OSWrappers::signalVSync();.Semaphore is not executed, resulting in modle: tick () not being executed

Martin KJELDSEN
Principal III
July 7, 2020

​Correct :) That's "stopping" touchgfx in my mind. You want something else? Go into low power mode?