flickering STM32 touch screen

Use this section to discuss your embedded Flowcode projects.
Post Reply
achillis1
Posts: 1
http://meble-kuchenne.info.pl
Joined: Sun Mar 01, 2026 3:24 pm

flickering STM32 touch screen

Post 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.
Attachments
STM.fcfx
(10.75 KiB) Downloaded 25 times

medelec35
Valued Contributor
Posts: 2257
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 696 times
Been thanked: 767 times

Re: flickering STM32 touch screen

Post 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.
Martin

Post Reply