nimaltd / spif

W25qxx, N25Qxx and other SPI FLASH driver for stm32 HAL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How Can You Calculate Block Count Variable ?

volkanunal opened this issue · comments

Hi ,

First of all thanks for lib.

i want to learn something about your calculation method. According to your library , for W25M12 flash , (https://www.winbond.com/resource-files/w25n01gv%20revg%20032116.pdf) . How can you calculate block count as 1024 ?

Best Regards ,
Volkan

Hello. your welcome.
your flash is different. Maximum in my library is w25q512. you can read datasheet an add your flash config in init function. (page 16)