Hi Melanie,
Yes, the AN4723 code may be used also for S12ZVL family.
Currently I am not aware about any AN4723 bootloader example project especially for S12ZVL, however the modifications should not be difficult.
I would like to recommend create new project for your S12ZVL device and use code files from Source\Bootloader, the file Comms.h from Source\Comms and the Comms.c from Source\Comms\SCIV6.
Note: SCIV5 was used only for early S12ZVM prototypes. The difference between SCIV5 and SCIV6 is mainly in baudrate calculation.
Additionally you should edit original prm file according Bootloader example projects. Be aware that S12ZVL32 has smaller RAM (0x001000 TO 0x0013FF) and Flash (0xFF8000 TO 0xFFFFFF) than S12ZVM128 (0x001000 TO 0x002FFF) & (0xFE0000 TO 0xFFFFFF). Also EEPROM is smaller (0x100000 TO 0x10007F). So, you could not simply copy&paste linker file.
You should also edit main.h file with most important definitions like FLASH_START_ADD (0xFF8000), FLASH_SECTORS_TO_ERASE (60 for ZVL32), GPIO macros (according your board), APPLICATION_START_ADD (0xFF8000 or other according your application),…
Note: the Comms code was created for SCI1 module. By default SCI1 pins are routed to PT0, PT1 pins. You may modify MODRR0 register to route these signals to PT4,PT5 pins, but I cannot recommend it. The MODRR0 register could be modified just once in normal mode and AN7423 Bootloader starts application code without reset. So, we have to avoid to write into any write once register in bootloader code.
The different approach for switch between bootloader and application may be based on MCU reset and tiny dispatcher code at early start of MCU like in AN4258 Serial Bootloader for S12(X) Microcontrollers Based on 180 nm Technology.
I hope it help you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------