Page 1 of 1

flickering STM32 touch screen

Posted: Sun Mar 01, 2026 7:20 pm
by achillis1
Hello

I have flowcode 8 and trying to program an STM32F449I - discovery mcu with touchcreen

I have selected the board in flowcode8 and try to print a number. If the number printing is within a loop then the screen flickers and the printing is distorted. If I add 1 second delay then at each printing the screen flickers and the number is being dragged along the X axis and then stabilizes until the next printing. The only way not to have this issue is to have 5 seconds delay which off course messes up the whole routine. At first I though that this was cause by the "clear display" but I get the same fault even without that. My code will be used to take a value ( by a touch update or via external input) and continuously update my text box or any other indicator I would add.
I read that this might be cause because the MCU uses the same buffer to read data and then print. Would be there any workaround via the flowcode settings and components?

I will attach my code. It is not the intended final one but a test one to check the MCU's capabilities and flowcode's bugs.

Re: flickering STM32 touch screen

Posted: Sun Mar 01, 2026 10:54 pm
by medelec35
Hello Rather than using ClearDispaly and PrintNumber, what about just use the Print function that prints strings.
You can use use a calculation Icon with:

Code: Select all

NumberString = ToString$(number)
NumberString = NumberString + "    "
Print NumberString
The + " " clears unwanted digits.