Hello @ladislas,
I discovered this problem while trying to help with this topic Blank display if S1820 probe enabled and how I wrote in my last post, I hoped about someone more clever/experienced, will able to explain it. I not tried to debug it.
I know only how to reproduce it and how to work around it.
LCD demo for F746 in original state (Mbed 2) is working and also when you replace the HAL_DELAY()
to old wait()
. With the MbedOS 6.2.1 it is also working with HAL_DELAY();
but how you change it to ThisThread::sleep_for()
or thread_sleep_for()
the display do nothing (it doesn’t matter if it’s RTOS or baremetal).
During my testing I found you can not have Mbed’s delay functions in the loop where you run the BSP functions.
So I solved it so that display handling runs in one thread and the rest of the program in another.
BR, Jan