2016-11-29 03:43 AM
Hi All,
I need to use an stm2f411 embedded flash as little file system. There will be about 20 small files on it. I found the uffs file system which is seems to be good for this. I found some information in stm32 doc: - maybe the page size is 512 byte - there are 16Kb, 64Kb, 128Kb of sectors on it. - I found HAL_FLASH_Program(), HAL_FLASHEx_Erase() in drivers. But I need some information about the stm32 flash: - is it NAND or NOR flash? - is the page size 512B? - uffs needs block parameters which is larger than page size. How many is it in stm32? thx, Zamek #stm32f #flash2016-11-30 05:59 AM
Hi Zamek,
To find these information , You would check tha datasheet relevant to the device from the ST website and check its reference manual -> Embedded Flash section.-Hannibal-2016-11-30 07:57 AM
You'd probably just want to use the 128KB blocks/sectors for consistencies sake, but the erase and write are rather slow, and will stall the processor to the point it can't handle basic real-time operations (ie Serial, USB, etc). You can run code from RAM to address this somewhat, but it doesn't speed things up.
It is ill suited to 512 byte sector file systems. You'd do better managing your own data structures, on a pair of the 16KB sectors if you can handle that. I believe it is a NOR Flash with some hidden word wide parity/ecc2016-12-02 01:05 AM
Hi All,
Thx for infos, that was the main missing info whether it is NAND or NOR. Because it is NOR, I cannot use any flash file systems, I need to manage it by own code. There was an old style flash file system for the old Psion machines, maybe I can get ideas from there. thx a lot, Zamek