跳轉到主要內容

安裝

In this section we will show you how to install TouchGFX as well as all the necessary components in the toolchain required to start your embedded graphics development.

Installing STM32CubeMX

After downloading STM32CubeMX from STM32CubeMX location, uncompress the downloaded .zip file and launch the .exe installer file. 然後按照說明完成安裝。

Installing STM32CubeMX

Getting X-CUBE-TOUCHGFX

As mentioned in the previous article, TouchGFX is bundled in an X-CUBE package called X-CUBE-TOUCHGFX. This package is most easily downloaded and installed using STM32CubeMX, but can also be downloaded directly from ST's site.

Using STM32CubeMX

To get X-CUBE-TOUCHGFX through STM32CubeMX, start by selecting "Manage Embedded Software Packages" under "Help" (or press Alt + U鍵)。).

幫助 -> 管理嵌入式套裝軟體

按下「刷新」以獲取可更新的套件清單。

刷新以更新可用的軟體包

跳到STMicroelectronics選項卡。 找到X-CUBE-TOUCHGFX",並展開。 選取「TouchGFXGenerator」,然後點擊「立即安裝」。 將下載軟體包並顯示授權協議。

找到TouchGFXGenerator套件

閱讀並接受授權協議,然後點擊「完成」,以在STM32CubeMX中安裝TouchGFXGenerator。

接受授權協議

X-CUBE-TOUCHGFX現在被解壓到以下路徑中: 

C:\Users\<user>\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-TOUCHGFX\4.13.0

X-CUBE-TOUCHGFX套件的位置

Direct download

If your intention is to simply try TouchGFX Designer without the need to install STM32CubeMX and perhaps trying out some of the existing example GUIs on STM32 Evaluation kits, you can download X-CUBE-TOUCHGFX directly from the ST.com official website to anywhere on your hard drive and extract it.

從st.com上下載X-CUBE-TOUCHGFX

安裝TouchGFX Designer

Inside the unpacked/extracted X-CUBE-TOUCHGFX distribution you will find the TouchGFX .msi installer in the following path:

Utilities\PC_Software\TouchGFXDesigner

按兩下.msi檔案可打開安裝程式。 按照說明完成安裝。

安裝TouchGFX Designer

Tip
您需要使用以下工具,透過TouchGFXDesigner來燒錄您的板子:

安裝STM32CubeProgrammer

從如下目錄下載STM32CubeProgrammer之後 STM32CubeProgrammer download location, 解壓檔.zip 並.exe安裝。 然後按照說明完成安裝。

安裝TouchGFX Designer

Caution
為了讓TouchGFXDesigner與Makefile使用STM32CubeProgrammer來燒錄開發板,必須將其安裝在預設的安裝位置: C:\ProgramFiles\STMicroelectronics\STM32Cube\STM32CubeProgrammer

從以下連結下載STM32 ST-LINK之後 STM32 ST-LINK utility location, 打開下載的檔.exe 並按照指示完成安裝。

安裝STM32ST-LINKUtility

Caution
為了使TouchGFXDesigner和Makefile能夠使用STM32ST-LINKUtility來燒錄目標硬體,必須將其安裝在預設安裝位置: C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility