nimaltd / spif

W25qxx, N25Qxx and other SPI FLASH driver for stm32 HAL
GNU General Public License v3.0
605 stars 173 forks source link

How Can You Calculate Block Count Variable ? #5

Closed embedded4ever closed 5 years ago

embedded4ever commented 5 years ago

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

nimaltd commented 5 years ago

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)