Read-While-Write on MPC5675K Code Flash modules

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Read-While-Write on MPC5675K Code Flash modules

跳至解决方案
1,072 次查看
JChMathae
Contributor II
破坏者
Hello,


According to the MPC5675K Reference Manual in chapter 8 "Flash Memory", Read-While-Write accesses within a Flash module is not possible. That is, it is impossible to erase or program a Flash sector when executing code from another sector within the same Flash module.

But when I am using the Standard Software C90LC Driver it seems to do exactly that: executing from a Flash module sector when erasing/programming another sector within this same Flash module...

Where is the truth?!

Thank you for your help.

Best regards.
0 项奖励
1 解答
1,053 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, by default bus stall happens instead of RWW, thus example will run even without relocation to SRAM.

davidtosenovjan_0-1632906282423.png

However driver also includes macro COPY_TO_RAM, so you can simply relocate flash routine to the SRAM, what you should do in real application.

 

在原帖中查看解决方案

2 回复数
1,054 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, by default bus stall happens instead of RWW, thus example will run even without relocation to SRAM.

davidtosenovjan_0-1632906282423.png

However driver also includes macro COPY_TO_RAM, so you can simply relocate flash routine to the SRAM, what you should do in real application.

 

1,035 次查看
JChMathae
Contributor II

David,

 

Thank you very much for your answer!

It explains a lot.

Thank you also for your little example on Data Flash use

 

Best regards.

0 项奖励