Skip to main content
Jan 21, 2020 3:00 PM UTC
Question

Setup up STM32F769I-DISCO board with cubemx and touchgfx support

Iam looking for a howto to setup up the STM32F769I-DISCO board as a stm32cubeide project with cubemx with touchgfx integration.

is there a howto?

This topic has been closed for replies.

29 replies

Martin KJELDSEN
Principal III
Jan 23, 2020 1:29 PM UTC

Use the F769I-DISCO application template through the TouchGFX designer - It has an ioc file for CubeMX in which you can generate a CubeIDE project. The AT also comes with an empty CubeIDe project when you create the application.

/Martin

Michael K
Senior III
Jan 24, 2020 11:24 PM UTC

I'd like to add that I needed to add a definition for QUADSPI in the linker script that was generated by the touchgfx project for the CubeIDE project, otherwise the contents of memory intended for the QUADSPI location were being placed at the 0x0, causing problems when trying to flash the hex file (i.e. the chip did not like being programmed in reserved memory space, and manually deleting the data everywhere before 0x08000000 resulted in a black screen).

To fix - Verify the presence of the following near the bottom of the file - specifically the label QUADSPI...

ExtFlashSection :
	{
		*(ExtFlashSection ExtFlashSection.*)
		*(.gnu.linkonce.r.*)
 . = ALIGN(0x4);
	} >QUADSPI

..And then add a definition for QUADSPI at the memory section near the top...

/* Memories definition */
MEMORY
{
 RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 512K
 FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
 QUADSPI (rx) : ORIGIN = 0x90000000, LENGTH = 64M
}

@Martin KJELDSEN​ , perhaps the missing definition is a bug in the project generation of TouchGFX?

Embedded UI/UX Consulting: cadenza.design
Martin KJELDSEN
Principal III
Jan 27, 2020 9:54 AM UTC

Oops, i think you're right. Setting up the linker script is a manual thing (cannot be generated by cubemx, conceptually, since QSPI is a BSP thing). But for some reason we forgot to add the proper linker script for CubeIDE.

Thanks!

Jan 28, 2020 12:56 PM UTC

Hi Martin,

the template worked well. Thanks for your help.

:)

Martin KJELDSEN
Principal III
Jan 30, 2020 2:43 PM UTC

No problem! :)

jackson.kang
Associate
Apr 6, 2021 1:39 AM UTC

I am doing setup on stm32f769i-disco board, but the link does not exist.

So, can I get a simple project as a source?