Skip to main content
DPant.1
Associate
August 6, 2020
Solved

Faulty Understanding Application Structure 1.1.0 example, which shows the Model-View-Presenter (MVP) design pattern: crashes on target

Using TouchGfx 4.14.0, select "Understanding Application Structure" example and run on target (stm32f469i-disco).

It will stack overflow on the 3rd transition:

0693W000003Oa0HQAS.png

The cure is to increase stack size from 2048 to 3072 (\TouchGFXProjects\MyApplication_1\Core\Src\main.c, line 69).

Please fix!

This topic has been closed for replies.
Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
August 6, 2020

Hi,

Thank you for finding this issue. We will fix this. Has a similar issue occurred for other UI templates you have tried?

/Romain

3 replies

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
August 6, 2020

Hi,

Thank you for finding this issue. We will fix this. Has a similar issue occurred for other UI templates you have tried?

/Romain

DPant.1
DPant.1Author
Associate
August 6, 2020

With stm32f469i-disco and TouchGfx 4.14.0:

  • many of the examples don't scale to full screen size (800x480) so result looks odd...

FlexButtonExample\1.1.0\

TextExample\1.1.0\

TextRotateExample\1.1.0\

ModalWindowExample\1.1.0\

LineAndCircleExample\1.1.0\

0693W000003OaR3QAK.png

  • others gives just a black screen (stack increase didn't help, so something else must be there but didn't have time to dig deeper):

PixelDataExample\1.2.0\

ListLayout\1.1.0\

TextureMapperExample\2.0.0\

ClockExample\2.0.0\

  • not building succesfully

TouchGFXDemo2\1.3.0\

 Compiling ASM gcc/startup_stm32f469xx.s
 Linking TouchGFX/build/bin/target.elf
 d:/tools/stm/sw/touchgfx/env/mingw/msys/1.0/gnu-arm-gcc/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: TouchGFX/build/bin/target.elf section `ExtFlashSection' will not fit in region `QSPI'
 d:/tools/stm/sw/touchgfx/env/mingw/msys/1.0/gnu-arm-gcc/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: region `QSPI' overflowed by 2748568 bytes

Hope you can double check them and find fixes.

DPant.1
DPant.1Author
Associate
August 6, 2020

PS: the "black screen" examples work if imported and rebuilt from STM32CubeIDE (Generate Code -> Browse Code -> --\STM32CubeIDE\.project -> Run).

Noticed that resulted STM32CubeIDE\Debug\STM32F469I-DISCO.hex is smaller than the original not-working TouchGFX\build\bin\target.hex and this can be seen in the map too:

0693W000003Ob66QAC.png