cancel
Showing results for 
Search instead for 
Did you mean: 

Configure FatFs for 256 page size

paras
Associate

Hello All,

 

 

I am planning to port FatFs on the IS25LP064A flash drive to communicate with my STM32H573ii over SPI. The FreeRTOS is running on STM32H573ii.

According to the IS25LP064A datasheet, the maximum page size is 256 bytes. The total size of the flash drive is 8 Mbyte.

1] Could you help me set the following parameters in FatFs?

GET_SECTOR_COUNT = 32768 (8 Mbyte / 256 bytes)

GET_SECTOR_SIZE = 256

Do I need to set the value of FF_MIN_SS since my maximum page size is 256 bytes?

FF_MIN_SS = 256

2] As per the datasheet, the erase block size is 4 Kbyte.

GET_BLOCK_SIZE = 16 (4 Kbyte / 256 bytes)

So Could you help me to find out the values of above parameters? Are they correct?

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Use 4KB sectors, as this is your minimum erase size, write the sectors as 16 256-byte pages

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

1 REPLY 1

Use 4KB sectors, as this is your minimum erase size, write the sectors as 16 256-byte pages

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