Hi Li,
Personally, I never build a bootloader for S12XS, however you may relatively simply use bootloaders examples for S12XE.
The S12XS and S12XE families are highly compatible. The XS family has a reduced peripheral set from the XE family.
More details about differences between S12XE and S12XS families are described in AN3327 Using the S12XE-Family as a Development Platform for the S12XS-Family
http://www.nxp.com/files/microcontrollers/doc/app_note/AN3327.pdf
The CAN bootloader for S12XE is described in AN3391 (links are in my previous reply).
If you look for some simpler bootloader, I would like to recommend also AN4258 Serial Bootloader for S12(X) Microcontrollers Based on 180 nm Technology
http://www.nxp.com/files/microcontrollers/doc/app_note/AN4258.pdf
http://www.nxp.com/files/microcontrollers/doc/app_note/AN4258SW.zip
Unfortunately, this bootloader implement by default only SCI interface. The CAN bus must be implemented additionally.
Some simple CAN examples may be found for example at:
https://community.nxp.com/docs/DOC-95116
or https://community.nxp.com/docs/DOC-329209
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------