cancel
Showing results for 
Search instead for 
Did you mean: 

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

vshah
Associate II

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!!!

2 REPLIES 2
Martin KJELDSEN
Chief III

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

/Martin

ktrofimo
Senior III

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