This section details how to program the
STM32F746G-DISCO board using binaries produced by either of the supported compilers in TouchGFX. Focus for each section will be any special conditions required to succesfully program your applications.
Note: Please see the article Overview: Compilers and IDEs for troubleshooting and general information.
The project for the
STM32F746G-DISCO board offers full flash loader support for both internal and external flash. The project is already set up to use an ST-Link debugger.
The Keil uVision project for the
STM32F746G-DISCO board uses a custom flash programming algorithm for the external NOR flash (QSPI), which must be copied to your uVision installation directory in order to be able to flash your application. You can find the flash loader algorithm here:
This file must be copied to the following folder (assuming that Keil uVision5 is installed in
Opening the flash loader algorithm configuration, you should now see an entry for both internal and external flash:
Note: After copying the flash algorithm file, please make sure that your uVision project settings correctly specify the use of this flash algorithm, and that the “RAM for algorithm” size is large enough (at least
0x2800bytes). The F7 based boards are configured to use ST-Link by default.
As described in “How do i program STM32 based boards using ST Link” you may use the
flash option with
make to program STM32 based boards using the ST-Link CLI, or use the GUI to manually choose which binaries to download and which external flashloader to use.
$ cd app/example/button_example/ $ make -f target/ST/STM32F746G-DISCO/gcc/Makefile flash