2025-05-25 11:33 AM
For STM32H743IIT6, the external font library used in TouchGFX is stored in a USB flash drive. After power - on, it is loaded into SDRAM. When displaying text, some fonts appear garbled. The font library I added covers Unicode range from 0x4e00 to 0x4e63, with a size of 100. I generated a bin file through TouchGFX. The first 100 bytes printed after the bin file is loaded into SDRAM are shown in Figure 2, and the content of the bin file opened with a hex editor is shown in Figure 3. During code testing, among the four characters "上 (shàng), 下 (xià), 不 (bù), 与 (yǔ)", only "下" can be displayed correctly, while the other three appear garbled (like a red square. I'm sorry that it's really hard to capture a clear picture on the OLED screen). Among the four characters "一 (yī), 丁 (dīng), 丂 (kǎo), 七 (qī)", only "七" is garbled. I really can't figure out where the problem lies. In addition, previously when this board used LVGL, an external font library was also ported, but there was no such phenomenon.