Code is getting stuck at vPortRaiseBASEPRI after using Touchgfx
Hello, I have created one basic project with STM32F746ZG and touchgfx. When I ran my code, In starting only its getting stuck at freeRTOS function vPortRaiseBASEPRI. After debug I found that code asserted at below line of function xQueueSemaphoreTake of queue.c.
/* Check this really is a semaphore, in which case the item size will be
0. */
configASSERT( pxQueue->uxItemSize == 0 );
This function is getting called by OSWrapper.cpp function tryTakeFrameBufferSemaphore. Here we are trying to take Semaphore "frame_buffer_sem". So in simple words value of frame_buffer_sem. uxItemSize is odd like 480.

When I debug more, I found during initialization(OSWrappers::initialize) of Semaphore has all correct values but seems like after sometime its getting all data corrupted.
I am really not sure how heap memory is getting corrupted as I just generated code from touchgfx and STM32CubeMX. My heap size is 32768 bytes.
Below are the screen shot of memory allocated for Semaphore "frame_buffer_sem"
After Initializing:

At function tryTakeFrameBufferSemaphore call:

Note : 0x200004c0 is address of Semaphore "frame_buffer_sem" .
Clearly heap data is getting corrupted.
Below is the stack level

Any help?
