📄️ 低硬體成本上的TouchGFX
本節討論如何在RAM和Flash大小有限、無加速且與外部Flash和顯示器的SPI連線速度慢的低成本硬體上使用TouchGFX。
📄️ NeoChrom/NeoChromVG上的TouchGFX
This section discusses how to use TouchGFX on hardware having the NeoChrom GPU graphics accelerator. 本圖形加速器可大幅提升紋理映射、影像縮放和旋轉等操作效能。這表示可建立更多進階UI,同時維持高畫面播放速率。
📄️ Image compression on Chrom-DEC
This section discusses how to use TouchGFX on hardware having the Chrom-DEC compressed graphics decoder. Chrom-DEC is a hardware accelerator that decompresses compressed images while they are drawn to the framebuffer. This offloads the CPU and significantly improves the rendering performance of compressed images. This means that applications can save flash by compressing their images, while still keeping a high frame rate.
📄️ 在 STM32H7R7 與 S7 上執行圖形處理
本文介紹 STM32H7R/S 系列 MCU 的具體架構,並討論用於圖形應用時需要考慮的事項。然而,大部分考量都適用於所有執行含外部 RAM 和快閃記憶體圖形處理的 STM32 MCU。
📄️ 從外部 RAM 執行圖形處理
本節介紹如何計算以下所示典型設定的圖形效能。此範例是 1024x600 像素的高解析度 24 位元 RGB-TFT 顯示器,具有儲存在外部 32 位元 SDRAM 中的 16bpp 影像緩衝區。圖形資產儲存在外部 OSPI NOR 快閃記憶體中。
📄️ 通過部分影像緩衝降低記憶體使用率
本節透過時鐘應用程式範例,說明如何在含 GRAM 的顯示器上,設定並使用局部影像緩衝區來降低記憶體需求 (需犧牲部分效能)。
📄️ 快閃記憶體受限的GUI開發
本文說明如何在使用少量快閃記憶體的情況下以TouchGFX開發圖形使用者介面。
📄️ 使用非記憶體映射快閃記憶體存儲影像
本節將討論如何將所有圖像連結到可以放入非記憶體映射快閃記憶體的二進位檔案,以及如何在執行時間使用該檔和點陣圖緩存。 TouchGFX不能繪製存儲在非記憶體映射快閃記憶體中的點陣圖,但將點陣圖存在RAM的緩存中,就能在應用中使用點陣圖。
📄️ 使用串列快閃記憶體存儲圖像和字體
本節將討論如何使用串列快閃記憶體(或其他未映射記憶體)來存儲圖像和字體。這裡介紹的技術在STM32G0和其他配備極小RAM的設備上特別有用。
📄️ Selecting External Flash Asset Banks
TouchGFX applications can use images, fonts, and text stored in memory-mapped external flash. When an application is linked, these assets have addresses in a fixed flash bank. If the assets are programmed into a different bank at runtime, the application can apply an address offset so TouchGFX reads the assets from that bank instead.
📄️ 對字體資料使用非記憶體映射快閃記憶體
本節將討論如何使用未映射的字體存儲格式,以便將幾乎所有的字體資料放入未映射的外部快閃記憶體。使用該存儲格式的效果是,您可以在一個應用程式中有數千個字母,而字體資料只需10 KB的內部flash存儲空間。
📄️ 更改應用程式的像素格式
本文將介紹在創建專案後,如何更改應用程式的像素格式。具體地說,本文將舉例說明如何通過TouchGFX Generator將24位RGB888應用修改為16位RGB565,還將介紹對TouchGFX專案配置的影響。更改像素格式的原因可能是:
📄️ Creating a TouchGFX Board Setup
TouchGFX開發版配置 (TBS)是 .tpa 文件,定義了運行TouchGFX應用程式的平臺。 This approach is for developers who wish to distribute easy-to-use TBSs separately from the UI code that runs on top of them. 本文描述了如何使用內建工具tgfx.exe,並將現有的TouchGFX專案封裝到可再分配的TBS中。 This tool can be found in the TouchGFX installation directory which is C:/TouchGFX/4.25.0/designer if it is installed in the default directory. For the duration of this article, examples are based on an application called "MyApplication" and on TouchGFX version 4.25.0.
📄️ 外部事件作為觸發器
本節描述如何在TouchGFX Designer中使用外部事件(如物理按鈕)作為觸發器。
📄️ 在STM32G071 Nucleo上運行的範例應用
在本節,我們將討論如何基於TouchGFX開發板設置(TouchGFX Designer中提供的ST開發套件之一),在沒有作業系統的情況下運行TouchGFX專案。本文不針對從STM32CubeMX或STM32CubeIDE開始的客製專案。
📄️ 在STM32CubeMX專案中添加檔
其他專案生成設置
📄️ 將 Keil 編譯器 5 專案轉換為 Keil 編譯器 6
簡介
📄️ CMake 作為建置系統
簡介
📄️ Using TouchGFX with STM32CubeMX2
Using TouchGFX with STM32CubeMX2 is currently less straightforward than with the original STM32CubeMX, because the X-CUBE-TOUCHGFX generator is not available in STM32CubeMX2. This article describes some guidelines for integrating TouchGFX into an STM32CubeMX2 project, with CMake as the preferred toolchain.