Skip to main content
January 21, 2020
Question

Setup up STM32F769I-DISCO board with cubemx and touchgfx support

  • January 21, 2020
  • 3 replies
  • 4673 views

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.

3 replies

Martin KJELDSEN
Principal III
January 23, 2020

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
January 24, 2020

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
January 27, 2020

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!

January 28, 2020

Hi Martin,

the template worked well. Thanks for your help.

:)

Martin KJELDSEN
Principal III
January 30, 2020

No problem! :)

jackson.kang
Associate
April 6, 2021

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

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