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

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

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

1,012 Views
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 Kudos
1 Reply

1,003 Views
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 Kudos