cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to display Text using FreeRTOS, TouchGFX and Custom LCD

pitbull
Associate III

Hello Everyone,

Earlier we have successfully developed a variant using STM32F746 Discovery board but now we have shifted towards our own developed PCB with custom LCD Display 800 * 480.

Our new PCB uses MT25Q128A external flash for storing images, text and font used by TouchGFX and we are using single buffer allocation in external SDRAM for framebuffer. We are using different pins for QuadSPI communication so had to develop custom external loader for this. We have tested the external loader for various images and it works fine.

When we started inputting texts in TouchGFX the system would wait infinitely in xQueueSemaphoreTake() function so we suspected something might be wrong with loading from external flash so we created another project this time stored everything in internal flash, again the result was same, the TouchGFX hangs while using texts.

After searching through the community we came across following links:

https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/ui-stuck-in-takeframebuffersemaphore/td-p/203677/page/7

Here it is suggested to  try to change the line in stm32h7xx_hal_dma2d.c, in the function, but is related to H7 series.

Same thread also suggested changing MPU Config

pitbull_0-1736834760700.png

 

We had disabled MPU in our project but even after enabling it the result was unaffected.

 

pitbull_1-1736834760419.png

 

Please guide me where I am doing wrong.

Thankyou 

 

Regards,

Pitbull

25 REPLIES 25

Hello @MM..1 

I added the new text testText in the project and then did this testing.

pitbull_0-1738218071795.png

By default, I set it to hidden in touchGFX designer and performed the testing.

Sorry for disturbing you, but I really need some help and really very much thankful for your guidance and time.

 

Thankyou

 

Regards,

Pitbull

 

I rememmber simmilar issue , but long time ago. Try move text as second object not first in designer.

pitbull
Associate III

Hii @MM..1

 

Finally resolved the issue.

Following is the link 

https://forums.freertos.org/t/how-to-debug-to-resolve-configassert-pxqueue-uxitemsize-0-loop-error/17269 

Increasing the stack size for the tasks resolved the issue in the following post.

Similarly I increased the stack size for every task from 128 words to 512 words.

Thankyou @MM..1  @JJhin.1 @Flemming Gram CHRISTENSEN  for your time and support.

 

Thankyou

 

Regards,

Pitbull 

Great news! Good job.

Where did you get the "previous" stack size? Should we change something in MX or in the documentation?

Best Regards

Ohh yes stack is magic elf. 4096 is my pref on start.

Hello @Flemming Gram CHRISTENSEN 

No I had not changed the default value in CubeIDE for minimum stack size. The previous stack size was the default value from cubeIDE. 

 

Thankyou once again for your support.

 

Regards,

Pitbull