Rewrite the Pflash code on S12ZVM

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

Rewrite the Pflash code on S12ZVM

Jump to solution
584 Views
ikkishingu
Contributor II

Hello,

 

I have a question about S12ZVM Program Flash.

If the user wants to rewrite the Program Flash code by itself,

do the code(to rewrite Pflash) have to be executed on SRAM?

Or can it be executed on another Pflash region/sector(i.e. read-while-write)?

 

Best Regards,

Ikki

Labels (1)
Tags (1)
0 Kudos
1 Solution
380 Views
iggi
NXP Employee
NXP Employee

Since there is only one Flash block on S12ZVM, the code must be executed from RAM.

It is not possible to access a Flash block while a code executes from the same. In case of two or more flash block, this would be possible - code executes on one and writes/read/erase the other block.

Also some commands can be executed from EEPROM (the flash block on S12ZVM consist of P-Flash and EEPROM):

It is possible to read from P-Flash memory while some commands are executing on EEPROM memory.
It is not possible to read from EEPROM memory while a command is executing on P-Flash memory from the same block.
Simultaneous P-Flash and EEPROM operations are discussed in Flash Module (S12ZFTMRZ) chapter.

Regards,

iggi

View solution in original post

0 Kudos
2 Replies
381 Views
iggi
NXP Employee
NXP Employee

Since there is only one Flash block on S12ZVM, the code must be executed from RAM.

It is not possible to access a Flash block while a code executes from the same. In case of two or more flash block, this would be possible - code executes on one and writes/read/erase the other block.

Also some commands can be executed from EEPROM (the flash block on S12ZVM consist of P-Flash and EEPROM):

It is possible to read from P-Flash memory while some commands are executing on EEPROM memory.
It is not possible to read from EEPROM memory while a command is executing on P-Flash memory from the same block.
Simultaneous P-Flash and EEPROM operations are discussed in Flash Module (S12ZFTMRZ) chapter.

Regards,

iggi

0 Kudos
380 Views
ikkishingu
Contributor II

Thank you!!

Ikki

0 Kudos