2024-04-18 02:23 AM
Hello,
I am experimenting on a STM32H7S78-DK board with a custom UI.
Sometimes the board looks like frozen and inspecting with the debugger I always find that the core is running, but GUITask is waiting for nema semaphore.
The call originates from nema_wait_irq_cl() with cl_id = last_cl_id + 1.
A reset may or may not solve the problem: sometimes the board works good, others it hangs up at the first few frames or after some interactions.
Removing all widgets and adding them one by one leads to incoherent results. It looks like working and then it hangs again or it may work without any change.
Which steps should I take to investigate the issue?
Best regards,
Alessandro
Solved! Go to Solution.
2024-04-24 01:23 AM
After days comparing code, turned out the issue was related to Nemagfx_Memory_Pool_Buffer being allocated in cacheable RAM.
Indeed, STM32H7S7L8HXH_RAMxspi1_ROMxspi2_app.ld generated by CubeMX defines a RAM_NONCACHEABLEBUFFER memory 1kB wide, not enough for Nemagfx_Memory_Pool_Buffer.
ld file shall be edited according to your example (SRAM4 72kB wide) to fit Nemagfx_Memory_Pool_Buffer.
Regards,
Alessandro Breuza
2024-04-19 07:08 AM
Hello @alessandro.breuza ,
I played a bit with a STM32H7S78-DK but I did not face the same issue as you.
What is the serial number?
How and when did you get that board?
Can you share your project so that I can test it on my board?
Find attached my project , you could try it on your board to see if you get an issue.
Regards,
2024-04-19 07:38 AM
2024-04-19 07:42 AM - edited 2024-04-19 07:45 AM
Thank you for the information.
What is written on the left of
"
MB1736-H7S7L8-B01
K23220081
"
? (there should be another "sticker)
So it is a regular DK board but you removed the screen and replaced it with another one?
Have you tried my project?
You can load the GUI only by clicking here:
Regards,
2024-04-19 07:53 AM
The other sticker contains:
STM32H7S78-DK
EDK32H7S78$KT4
Yes, I removed the original display and connected this one DT070DTFT-IPS-PTS through an adapter board that converts RGB to LVDS signalling and generates appropriate voltages.
Now I'm trying your project, I'll let you know.
Alessandro
2024-04-19 07:59 AM
Also check if you can see "ES" written on your board (maybe the front).
2024-04-19 08:00 AM - edited 2024-04-19 08:01 AM
Same issue immediately after transiction to screen2...
(only GUI imported)
Regards,
Alessandro
2024-04-21 11:03 PM
Yes, another sticker "ES" is there near the other two.
2024-04-22 03:31 AM
Hello @alessandro.breuza ,
ES stands for engineering sample, they are early boards meant mostly for testing. Sometimes they don't behave as expected.
Your issue could be linked to the board itself, however, it is not for sure the reason of the issue.
How did you create your TouchGFX project?
Did you create it directly from Designer and then changes some settings in STM32CubeMX to match your screen or did you start from scratch in STM32CubeMX?
Regards,
2024-04-22 05:14 AM
I started from scratch in STM32CubeMX.
Alessandro