S32R274 flash

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32R274 flash

1,033 Views
iceice
Contributor III

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

iceice_0-1642143263247.png

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

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

 

Tags (1)
0 Kudos
4 Replies

1,003 Views
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 Kudos

989 Views
iceice
Contributor III

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

0 Kudos

977 Views
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 Kudos

943 Views
iceice
Contributor III

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

0 Kudos