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
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