Read-While-Write on MPC5675K Code Flash modules

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

Read-While-Write on MPC5675K Code Flash modules

ソリューションへジャンプ
1,327件の閲覧回数
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,308件の閲覧回数
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,309件の閲覧回数
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,290件の閲覧回数
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 件の賞賛
返信