cancel
Showing results for 
Search instead for 
Did you mean: 

Compile problems from STM32CubeIDE in STM32H747-DISCO based TouchGFX project

Pensees
Associate II

Hello,

I have compile problems with STM32CubeIDE.

< Detail information >

1) STM32CubeIDE version : 1.7.0

2) TouchGFX version : 4.17.0

3) Target Board : STM32H747I-DISCO

4) Process order in my case

  • Create new STM32 project (select STM32H747I-DISCO board, targeted language is C++)
  • Configure Software Packs (in .ioc file)0693W00000D13XMQAZ.png

  • GUI design from TouchGFX program (open ApplicationTemplate.touchgfx.part)
  • Generate code
  • Refresh ​STM32 project and copy necessary files From TouchGFX project to STM32 project
  • Build project (in my case, compile error occurs)
  • If needed, added Paths0693W00000D13YUQAZ.png

5) Compile error messages0693W00000D13ZIQAZ.png 

Attached my project.

Please advise for me, thanks.

6 REPLIES 6
Ethan HUANG
ST Employee

It seems to me you could figure this out by following page 2 of the attachment. Meanwhile, I would suggest you to disable binary generation as shown in page 3 so you do not need to spend much time waiting for big binary (>2GB) generation.

Thanks to Ethan HUANG, it compiles successfully.

And upload CM4.elf file also done.

But, CM7.elf file upload failed.

< Error message>

Error in final launch sequence:

Failed to execute MI command:

load D:\\study\\STM32\\STM32H747I-DISCO\\CM7\\Debug\\STM32H747I-DISCO_CM7.elf 

Error message from debugger back end:

Load failed

Failed to execute MI command:

load D:\\study\\STM32\\STM32H747I-DISCO\\CM7\\Debug\\STM32H747I-DISCO_CM7.elf 

Error message from debugger back end:

Load failed

Failed to execute MI command:

load D:\\study\\STM32\\STM32H747I-DISCO\\CM7\\Debug\\STM32H747I-DISCO_CM7.elf 

Error message from debugger back end:

Load failed

Load failed

Ethan HUANG
ST Employee

First (and only) guess is "external loader" is not enabled in "Debugger". Please take a look at the attached picture below:

It possible to load hex file via "STM32 ST-Link Utility" but nothing displayed...

It's not clear to me "nothing display". I think you got either one below:

  1. black screen
  2. white screen

If you got #1, you need to figure out display setting first. If you got #2, it's normal because your TouchGFX project is pure white.

Anyway, I would highly recommend you start the project by using TouchGFX Designer w/ TouchGFX Board Setups of H747I-DISCO so you can get rid of much of the hardware configurations and therefore can focus on GUI design.

Starting from CubeIDE is a bit challenging and I would suggest you to refer to section "How-to" from the link below":

https://support.touchgfx.com/docs/development/board-bring-up/how-to/01-create-project

As you can see from section "3. Framebuffer in internal RAM

" , you may need to check if you can really see a read screen before enabling TouchGFX.

Pensees
Associate II

Upload is done in STM32CubeIDE. But still nothing displayed.