cancel
Showing results for 
Search instead for 
Did you mean: 

reserving a section of internal flash for FatFs

Priyank
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2
Saket_Om
ST Employee

Hello @Priyank 

Did you try to check the example provided in the X-CUBE-EEPROM package.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..