Read-While-Write on MPC5675K Code Flash modules

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

Read-While-Write on MPC5675K Code Flash modules

Jump to solution
1,325 Views
JChMathae
Contributor II
Spoiler
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 Kudos
Reply
1 Solution
1,306 Views
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.

 

View solution in original post

2 Replies
1,307 Views
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,288 Views
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 Kudos
Reply