前言
Fee調(diào)用Fls接口操作DFlash,而Fls會因不同的芯片而不同,在詳解Fee模塊前先介紹TC37x芯片的一些DFlash概念,方便后面理解后面的Fee功能。
正文
1.Bank
官方定義:
一塊Bank可以包含多個Physical Sector(后文解釋),Bank之間是物理隔離的。比如:DFlash0等同于一個Bank,包含1個Physical Sector。物理隔離指的是兩塊內(nèi)存不相關(guān),比如DFlash0于DFlash1在物理上隔離,即使沒有DFlash1也不影響DFlash0,這也是不同芯片型號內(nèi)存空間可以不同的原因。不同芯片型號,Bank數(shù)量不同,內(nèi)存大小也有所不同。
TC37x芯片DFlash有兩塊Bank:
Bank0也就是DFlash0
起始地址:0xAF000000
結(jié)束地址:0xAF03FFFF
大?。?56Kbyte
Bank1也就是DFlash1
起始地址:0xAFC00000
結(jié)束地址:0xAFC1FFFF
大小:128Kbyte
TC37x芯片PFlash有兩塊Bank:
2 Sector
官方定義:
Physical Sector(物理扇區(qū)):內(nèi)存的一個物理區(qū)域與另一個內(nèi)存區(qū)域隔離。一個物理扇區(qū)包含多個邏輯扇區(qū)。
Logical Sector(邏輯扇區(qū)):Flash擦除的最小單位。一個邏輯扇區(qū)可以包含多個wordline。
2.1 DFlash中Bank與Physical Sector/Logical Sector關(guān)系
TC37x芯片中DFlash0(256 KBytes)有1個Physical Sector(256 KBytes),在Single Ended Mode下1一個Physical Sector包含64個Logical Sector,每個Logical Sector大小是4Kbyte。
TC37x芯片中DFlash0(256 KBytes)有1個Physical Sector(256 KBytes),在Complement Sensing Mode下1一個Physical Sector包含128個Logical Sector,每個Logical Sector大小是2Kbyte。
TC37x芯片中DFlash1(128 KBytes)有1個Physical Sector(128 KBytes),在Single Ended Mode下1一個Physical Sector包含32個Logical Sector,每個Logical Sector大小是4Kbyte。
TC37x芯片中DFlash1(128 KBytes)有1個Physical Sector(128 KBytes),在Complement Sensing Mode下1一個Physical Sector包含64個Logical Sector,每個Logical Sector大小是2Kbyte。
2.2 PFlash中Bank與Physical Sector/Logical Sector關(guān)系
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 * LogicalSectors)。
3 Wordline
官方定義:
Wordline: 字節(jié)對齊單位,不同的Flash,對齊字節(jié)數(shù)不同。TC3xx芯片中,PFlash的Wordline是1024字節(jié),DFlash在single ended模式下的wordline是512字節(jié),在complement sensing mode下是256字節(jié)。
4 Page
Page: Flash進(jìn)行Programme編程(寫)的最小單位。TC3xx芯片中,PFlah中一個Page為32 Bytes,DFLash中一個Page為8Bytes。
審核編輯:湯梓紅
-
芯片
+關(guān)注
關(guān)注
460文章
52520瀏覽量
441226 -
FlaSh
+關(guān)注
關(guān)注
10文章
1679瀏覽量
151885 -
接口
+關(guān)注
關(guān)注
33文章
9005瀏覽量
153781 -
內(nèi)存
+關(guān)注
關(guān)注
8文章
3125瀏覽量
75287
原文標(biāo)題:TC37x芯片F(xiàn)LASH基本概念介紹
文章出處:【微信號:汽車電子嵌入式,微信公眾號:汽車電子嵌入式】歡迎添加關(guān)注!文章轉(zhuǎn)載請注明出處。
發(fā)布評論請先 登錄
詳細(xì)介紹下Aurix芯片的STM模塊

TC37x或TC38x是否支持FreeRTOS?
TC37x OCDS模塊中的TGI輸入引腳被描述為觸發(fā)輸入,脈沖觸發(fā)后會產(chǎn)生什么事件?
Tricore TC37x和TC36x是否只有在Tricore MCU啟動時連接了調(diào)試器,看門狗定時器才會停止?
USB基本概念及從機(jī)編程方法介紹
Uart協(xié)議(即串口)的基本概念及相關(guān)知識介紹
VMA和LMA的基本概念簡介與常見問題解析
時序分析基本概念介紹—花一樣的“模式”

評論