【TC3xx芯片】TC37x芯片FLASH基本概念介绍

目录

前言

正文

1.TC37x芯片FLASH概念介绍

1.1 Bank

1.2 Sector

1.2.1 DFlash中Bank与Physical Sector/Logical Sector关系

1.2.2 PFlash中Bank与Physical Sector/Logical Sector关系

1.3 Wordline

1.4 Page


前言

Fee调用Fls接口操作DFlash,而Fls会因不同的芯片而不同,在详解Fee模块前先介绍TC37x芯片的一些DFlash概念,方便后面理解后面的Fee功能。

参考文档:

【Memory协议栈】AUTOSAR架构下Fee详细分析

【Memory协议栈】AUTOSAR架构下Fls详细分析

正文

1.TC37x芯片FLASH概念介绍

1.1 Bank

官方定义

一块Bank可以包含多个Physical Sector(后文解释),Bank之间是物理隔离的。比如:DFlash0等同于一个Bank,包含1个Physical Sector。物理隔离指的是两块内存不相关,比如DFlash0于DFlash1在物理上隔离,即使没有DFlash1也不影响DFlash0,这也是不同芯片型号内存空间可以不同的原因。不同芯片型号,Bank数量不同,内存大小也有所不同。

TC37x芯片DFlash有两块Bank:

Bank 0也就是DFlash0

起始地址:0xAF000000

结束地址:0xAF03FFFF

大小:256Kbyte

Bank 1也就是DFlash1

起始地址:0xAFC00000

结束地址:0xAFC1FFFF

大小:128Kbyte

TC37x芯片PFlash有两块Bank:

1.2 Sector

官方定义

Physical Sector(物理扇区):内存的一个物理区域与另一个内存区域隔离。一个物理扇区包含多个逻辑扇区。

Logical Sector(逻辑扇区):Flash擦除的最小单位。一个逻辑扇区可以包含多个wordline。

1.2.1 DFlash中Bank与Physical Sector/Logical Sector关系

TC37x芯片中DFlash0(256 KBytes)有1个Physical Sector(256 KBytes),在Single Ended Mode下1一个Physical Sector包含64个Logical Sector,每个Logical Sector大小是4 Kbyte。

TC37x芯片中DFlash0(256 KBytes)有1个Physical Sector(256 KBytes),在Complement Sensing Mode下1一个Physical Sector包含128个Logical Sector,每个Logical Sector大小是2 Kbyte。

TC37x芯片中DFlash1(128 KBytes)有1个Physical Sector(128 KBytes),在Single Ended Mode下1一个Physical Sector包含32个Logical Sector,每个Logical Sector大小是4 Kbyte。

TC37x芯片中DFlash1(128 KBytes)有1个Physical Sector(128 KBytes),在Complement Sensing Mode下1一个Physical Sector包含64个Logical Sector,每个Logical Sector大小是2 Kbyte。

1.2.2 PFlash中Bank与Physical Sector/Logical Sector关系

TC37x芯片中PFlash0/1(3M)有3个Physical Sector(1M,1024 KBytes),每个Physical Sector包含64个Logical  Sector(16 KBytes)。也就是说:PFlash0/1(3M)== 3 * 1M (3 *Physical Sectors)== 3 * 64 * 16(192 * Logical Sectors)。

1.3 Wordline

官方定义:

Wordline: 字节对齐单位,不同的Flash,对齐字节数不同。TC3xx芯片中,PFlash的Wordline是1024字节,DFlash在single ended模式下的wordline是512字节,在complement sensing mode下是256字节。

1.4 Page

Page: Flash进行Programme编程(写)的最小单位。TC3xx芯片中,PFlah中一个Page为32 Bytes,DFLash中一个Page为8 Bytes。

  • 0
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汽车电子嵌入式

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值