Hi Durgaprasad,
The Start12.c file contains code for initializing of MCU after reset – it is mainly initializing of the stack, load default values of variables from flash and clear zero variables. You may skip this code when you will manage that yourself in the main code.
The c files have to be compiled/linked to the machine code readable by S12 core. Typically we send to MCU file with S-record (contains only flash content, the typical file is with .sx or .s19 file extension). The abs file contains also additional debug information, however, this file is not in simple readable format (it is not a text file).
So, the flow is
1. Write your code in c/assembler
2. Make your project (compiler/linker/…)
3. Load s19/abs file content into MCU
a. by BDM interface
b. by UART or any other channel. The S12 MCU must be already preloaded by bootloader code. The bootloader code will receive application code and write it into flash.
Unfortunately, I haven’t any personal experience with any S12 toolchain for Linux.
Could you please share little bit more details about your project?
Do you really need load code into empty S12 MCUs by linux processor? Or S12 MCUs may be already preloaded by bootloader code from assembly site?
If you are able to load bootloader code by BDM interface, the main application might be later updated anytime trough UART. See AN4258 for more details.
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!
-----------------------------------------------------------------------------------------------------------------------