Skip to main content
vshah
Associate II
October 16, 2020
Question

TouchGFX OSWrappers function "waitForVsync" got stuck into "for" loop forever.

  • October 16, 2020
  • 2 replies
  • 1854 views

Hi,

I am using STM32L4 series controller with FREERTOS configuration, i found that sometimes my code gets stuck into "for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext )" under "vListInsert" function.

I am using timer for VSync, which having priority of 6 and

configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY to 5.

There are only tow number of task,

  1. Main task - Priority 2
  2. GUI task(TouchGFX GUI task) - Priority 3

Please find attached snap-shot of debugging window.

0693W000004K17sQAC.jpgHigh priority task(TouchGFX GUI task) gets blocked by "for" loop forever, system never get chance to other other task and whole system hanged up there.

Could you help me out with this?

Thanks!!!

This topic has been closed for replies.

2 replies

Martin KJELDSEN
Principal III
November 2, 2020

Looks like you're using EWARM. Can you enable the FreeRTOS plugin and show the state of tasks/semaphores?

/Martin

ktrofimo
Senior III
May 7, 2021

Got exactly the same problem. Fixed by increasing FreeRTOS task stack size.