我在搭建一个基于MC9S12XS128芯片CAN Bootloader的程序,但是缺少S12MSCAN头文件,据说,这个文件可以在CodeWarrior安装目录下找到,但是我没找到。希望有这个文件的人能分享给我,谢谢你!
Hi Li,
Could you please specify which software resource you used as your reference?
I didn’t found any note about S12MSCAN.h file in application note AN3391 LFAE Bootloader Example and Interface for use with AN2546
http://www.nxp.com/files/microcontrollers/doc/app_note/AN3391.pdf
http://www.nxp.com/files/microcontrollers/doc/app_note/AN3391SW.zip
and also, no information about S12MSCAN.h file in MSCAN driver:
http://www.nxp.com/files/microcontrollers/software/device_drivers/MSCAN_S12_DEVD.zip
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!
-----------------------------------------------------------------------------------------------------------------------
Hi Radek,
Thank you so much. I have deal with it.
Did you build any project about CAN Bootloader used for MC9S12XS ? Could you give me an example or program resources ?
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!
-----------------------------------------------------------------------------------------------------------------------