Bootloader : execution of flash write, flash erase functions from RAM.

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

Bootloader : execution of flash write, flash erase functions from RAM.

997 次查看
AjRj14
Contributor III

Hi,

 

I am following simple serial Bootloader for S12 application note.

Why the functions like flash erase and flash write are being executed from RAM? Could you please provide the reason .

Thanks in Advance

0 项奖励
1 回复

988 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

 

It is valid for entire S12 family that it is not allowed to execute code out of the memory block which is currently E/W.
This fact includes into consideration usage of interrupts (routines placement and/or their enable) as well as execution of the code which waits for the E/W command complete inside the flash memory. Because of this the code is moved to RAM.

Best regards,

Ladislav

0 项奖励