请问S32R274的嵌入式flash控制模块中 C55FMC_ADR 寄存器的ADDR位怎么计算的,
手册中说ADDR的23~3位是偏移地址,但是在C55FMC_ADR中8~28位是ADDR只有21位,这是怎么转换的。
我读出寄存器值为0x80c0000,对应的偏移地址是多少呢
Hi,
please take a look at this file attached inside the reference manual:
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:
You can check by your debugger address at 0x0100_0000 + 0xC_0000 = 0x010C_0000.
Regards,
Lukas
请问如果出现flash错误,ECC错误状态是在什么时候置位的
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
请问都有什么异常会进入IVOR1