2025-04-25 6:37 AM - edited 2025-04-25 6:50 AM
Hi, I wanted to know if it is possible and how to approach reserving/allocating a section of internal flash (The Resource section) for a FatFs file?
Solved! Go to Solution.
2025-05-02 9:32 AM
TBH it's woefully ill suited to FatFs..
You can hide areas from the LINKER via the LINKER SCRIPT (.ld) or the SCATTER FILE (.sct) depending on your tools. The Linker can only use space you tell it about, so you can shrink sizes and make holes, which it will then NOT USE.
FatFs works a lot better with the QSPI NOR FLASH 4KB sectors (very slow to write), or with eMMC / MicroSD cards
2025-05-02 8:55 AM
Hello @Priyank
Did you try to check the example provided in the X-CUBE-EEPROM package.
2025-05-02 9:32 AM
TBH it's woefully ill suited to FatFs..
You can hide areas from the LINKER via the LINKER SCRIPT (.ld) or the SCATTER FILE (.sct) depending on your tools. The Linker can only use space you tell it about, so you can shrink sizes and make holes, which it will then NOT USE.
FatFs works a lot better with the QSPI NOR FLASH 4KB sectors (very slow to write), or with eMMC / MicroSD cards