cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer destroys the UI

ngrigoriadis
Senior

Hello friends,

I am having a hard time and I don't know what to do! I need some help.

I had created a simple UI with two images and some texts inside. After generated the code, I use the simulator to ensure that everything is ok with the UI and after that I flash the code through TouchGFX with the F6 key. The operation was completed and the UI appears successfully in the screen. After this I wanted to add an interaction, which will disappear the Images from the screen when the user presses a button. I followed the steps of this video https://www.youtube.com/watch?v=vxGxt4A8V3Y and it says that I can flash the code through the STM32CubeProgrammer. This will happen if I show a path to the programmer, which contains the Flash.bin file and the start address at 0x08000000. 

So I ensure that my code after I had set the interaction that has no errors and after that I opened the programmer I set the proper start address and I found the proper file in the directory based on the video. After that when I pressed the start programming button it downloads/flashes the code successfully to the screen, although the hole UI had been damaged. For example nothing is the same that before the images are appearing in the half and also the texts are disappear. 

The TouchGFX designer that I use is : 4.22.0

The STM32CubeIDE that I use is : 1.13.1

The STM32CubeProgrammer that I use is : 2.14.0

Screenshot (36) contains the options in the CubeProgrammer

Screenshot (37) shows how the UI appears to the screen after flashing it from the TouchGFX 

Screenshot (38) shows how the UI appears to the screen after flashing it from the CubeProgrammer

This is the log output from the CubeProgrammer:

13:01:49 : Memory Programming ...
13:01:49 : Opening and parsing file: flash.bin
13:01:49 : File : flash.bin
13:01:49 : Size : 279.25 KB
13:01:49 : Address : 0x08000000
13:01:49 : Erasing memory corresponding to segment 0:
13:01:49 : Erasing internal memory sectors [0 2]
13:01:51 : Download in Progress:
13:01:53 : File download complete
13:01:53 : Time elapsed during download operation: 00:00:03.791
13:01:53 : Verifying ...
13:01:53 : Read progress:
13:01:53 : Download verified successfully
13:01:53 : RUNNING Program ...
13:01:53 : Address: : 0x08000000
13:01:53 : Application is running, Please Hold on...
13:01:53 : Start operation achieved successfully

1 REPLY 1
MM..1
Chief II

Video copy is good simple, but normal way is understand what you do. If your board use too external flash, then write bin into internal only can result as you see.