博文

目前显示的是标签为“uC-GUI”的博文

How to port uCGUI with STM32?

图片
 Here’s a practical, battle-tested checklist for porting uC/GUI (SEGGER emWin) on STM32 . It works whether you use raw SPI LCDs (e.g., ST7735/ILI9341) or LTDC/DMA2D panels on F4/F7/H7. 0) Prereqs Tooling: STM32CubeIDE (or Keil/IAR), CubeMX for clock/pin init. uC/GUI (emWin) package: For many STM32 MCUs, ST ships STemWin (a licensed emWin build). Otherwise, use a SEGGER emWin library matching your compiler/CPU. BSP drivers: Your LCD (SPI/LCD controller or LTDC) + optional touch (I²C/ADC). 1) Add emWin/uC-GUI to the project Include core sources/libs (GUI/, WM/, LCD/, etc.) or prebuilt library from STemWin. Add config stubs (typically): GUIConf.c → memory allocator configuration LCDConf.c (a.k.a. LCD_X_Config ) → display driver & layer config GUI_X.c → timing, multitasking hooks (OS or bare-metal) Project include paths should point to emWin headers; link the right library variant (e.g., Cortex-M4F/Thumb). 2) Allocate GUI memory...