How to find the sector number of each flash block in S32K3 family

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to find the sector number of each flash block in S32K3 family

How to find the sector number of each flash block in S32K3 family

Hi,

   Firstly, you should get the flash block size of your S32K3xx. Table in RM could be the reference.

OliverTian_0-1641979572873.png

   Secondly, you should know that there are super sector and sector in S32K3xx.

 

Sector                    Subdivision of the Flash Block that is independently erasable. Sector Size is always 8 KB.
Super sector          Subdivision of the flash block that includes a group of sectors. Super Sector Size is always 64 KB, and consists of 8 sectors.

   Thirdly, based on the information of PFCBLKx_SSPELOCK in RM, you can calculate the numbers of super sector and sector in each flash block.

 OliverTian_2-1641979572947.png

For example in S32K312, it has 2MB flash totally and each block is 1MB. So, in each 1MB, its first 768KB is with super sector granularity. The numbers of super sector is 768/64=12; the followed sector number is 256/8=32.

Cheers!

Oliver

无评分
版本历史
最后更新:
‎01-12-2022 02:30 AM
更新人: