Rewrite the Pflash code on S12ZVM

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

Rewrite the Pflash code on S12ZVM

跳至解决方案
1,151 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
947 次查看
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 项奖励
回复
2 回复数
948 次查看
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 项奖励
回复
947 次查看
ikkishingu
Contributor II

Thank you!!

Ikki

0 项奖励
回复