2025-05-11 2:32 AM
Dear all,
I have dev a custom board pcb based on stm32h743ii with 32MB of flash and 32MB sdram FMC for a 7 inch lcd HD. I am new on cubeide i coming from esp32 world and i have some programing dev question .
Is it a good idear to implement :
To partition the flash in 2 regions 1 for system the 2 to store image in the flash in png or jpeg format then load them....
What is the best solution for this family of mcu.
2025-05-11 4:16 AM
Hi,
the H743xI has 2MB flash , this should be enough for most programs. :)
(Just my program on H743 here , has about 10000 lines C , needs about 170 KB flash, with -O2 optimizer set. )
>What is the best solution for this family of mcu.
As always: what fits your needs, the cpu dont matter. Most used here is probably fatfs .
Can be selected in Cube:
...also for external flash...
So for your pictures : are pics fix - or changing many times ?
-> just because you write them once to the external flash or want to modify them often?
If fix, i would write them simply as data arrays, no file system needed.
If edit pics, change them often, i would prefer something like a sd-card, with fatfs (so edit on PC is easy).
2025-05-12 7:23 AM
Thanks for this first answer i don't have sram on the pcb and not usb otg when i have builded the board it was my first 4 layers pcb and i was really happy that my custom board was working after the first soldering with the following spec:
QSPI flash 25Q256JVEN / 32MB
sdram : w9825g6kh 256/ 32 MB
LTDC: 24 bit rgb888
I2C : touch ft 5426
Is it possible to create a file system fatfs on a partition of the QSPI flash ?
2025-05-12 7:46 AM
Yes, should work.
I searched forum : > QSPI flash fatfs <
->
or
you could use the sdram , for display only small part used, i suppose.