Hi,
The principle is the same for bot MCUs. What have to be checked and probably adjusted is used memory map in the prm file. The devices are from the same family. The difference between them can be found in the reference manual “1.2.1 MC9S12ZVL-Family Member Comparison”.
Also look at:
https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVL64-Bootloader-problems/m-p/1252806
Flash driver, there is one rule valid for each device. The Flash memory block is not read-while-write. So, the code is not allowed to be executed out of the memory which is currently E/W. Because of this, usually the part of the flash driver which waits for command finished flag is located in another memory. It can be in EEPROM, RAM, …., any memory which is available but not in the same memory block which is currently processed E/W. This MCU, however, do not enables for this action to use EEPROM (older families of S12 devices yes, because of different memory structure)
Simultaneous operation are described in “Table 22-31. Allowed P-Flash and EEPROM Simultaneous Operations on a single hardblock”.
The source code for “AN4723 S12Z MagniV Bootloader” can be found at bellow mentioned page.
You can also look at “AN12086 Simple Serial Bootloader for S12Z”. Can be found at:
https://community.nxp.com/t5/S12-MagniV-Microcontrollers/List-of-MagniV-and-S12-X-Application-notes/...
Best regards,
Ladislav