S32R274 flash

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32R274 flash

2,859件の閲覧回数
iceice
Contributor III

请问S32R274的嵌入式flash控制模块中 C55FMC_ADR 寄存器的ADDR位怎么计算的,

iceice_0-1642143263247.png

手册中说ADDR的23~3位是偏移地址,但是在C55FMC_ADR中8~28位是ADDR只有21位,这是怎么转换的。

我读出寄存器值为0x80c0000,对应的偏移地址是多少呢

 

タグ(1)
0 件の賞賛
返信
4 返答(返信)

2,829件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

please take a look at this file attached inside the reference manual:

lukaszadrapa_0-1642437214429.png

See the "NVM" tab in the file. Last two columns are important - it says which partition (space) it is and what is the block size.

If you can see 0x080C_0000 in the register, it means that 'a256k' is set. So, the base address of 256k blocks is 0x0100_0000:

lukaszadrapa_1-1642437404037.png

You can check by your debugger address at 0x0100_0000 + 0xC_0000 = 0x010C_0000.

Regards,

Lukas

 

0 件の賞賛
返信

2,815件の閲覧回数
iceice
Contributor III

请问如果出现flash错误,ECC错误状态是在什么时候置位的

0 件の賞賛
返信

2,803件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

ECC error is reported when you access such corrupted area. This application note could be helpful (S32R274 also belongs to MPC57xx family of devices):

https://www.nxp.com/docs/en/application-note/AN13179.pdf

https://www.nxp.com/docs/en/application-note-software/AN13179SW.zip

Regards,

Lukas

0 件の賞賛
返信

2,769件の閲覧回数
iceice
Contributor III

请问都有什么异常会进入IVOR1

0 件の賞賛
返信