1.1 Patch IAR Embedded Workbench
TouchGFX 4.9.0 for ST STM32L4R9 supports IAR Embedded Workbench version 7.8x and 8.11
Download and extract the file EWARM_STM32L4Rx_Support_DualBank_V3.zip into your IAR Embedded Workbench installation typical:
|Version 7.8x||C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.5|
|Version 8.11||C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0|
1.2 Install ST Link Utility
To use TouchGFX for ST STM32L4R9 Disco, you need to install STM32 ST-Link Utility version 220.127.116.11 or newer, which is available from st.com.
Note: At the time of writing 18.104.22.168 is not released by ST, instead STM32 ST-Link Utility version 22.214.171.124 needs to be patched.
1.2.1 Patching ST Link Utility version 126.96.36.199
Please read and accept the following:
- The official version will soon be available for download on st.com.
- This is a patched version which comes with no guarantee and might comes with bugs.
- Please do not distribute this patched version; instead please wait for the official version which support STM32L4R9I EVAL and DISCO boards.
- Please install the official release available on st.com (below link) then overwrite it with the patch version.
For ST-Link Utility version 188.8.131.52 the external flashloader for STM32L4R9-DISCO needs to be patched manually, this is done by downloading
http://packages.touchgfx.com/ST_STM32L4R9/MX25LM51245G_STM32L4R9I-DISCO-OSPI1.stldr and placing it in STM32 ST-Link Utility installation directory, the default installation path is:
C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ExternalLoader\
Verify that your ST-Link Utility has the external loader for STM32L4R9 Disco:
-Click on the External Loader menu
-Click Add External Loader
-Find and select MX25LM51245G_STM32L4R9I-DISCO-OSPI1. Start Address must be 0x90000000.
-Deselect any other External Loader
1.3 Creating a new application for the ST STM32L4R9I-DISCO board
In TouchGFX Designer select “Change” on the “Application Template” card and switch to the tab named “STMicroelectronics” to choose the “STM32L4R9I-DISCO”, hereafter press “Select” to confirm.
TouchGFX Designer defaults to a blank UI. If another UI template is desired, select “Change” on the “UI Template” card and choose a compatible UI template from the list. Click the “Create” button to start
developing the graphical user interface with the TouchGFX Designer for STM32L4R9I-DISCO.
Compiling the project with IAR Embedded Workbench, click the “Browse Code” button in the bottom right
corner of the designer. This will open up a Windows File Explorer in the root directory of the created project. The IAR project is located under “target/IAR
Open the project with IAR Embedded workbench to compile the application.