Can some one introduce function of Start.c file in your S12G_examples, what is attention when a project should be developed?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can some one introduce function of Start.c file in your S12G_examples, what is attention when a project should be developed?

392 Views
wengxp
Contributor I


Hello, I am using S12G128 to do CAN communocation, I found demo code S12G_CAN_Demo from AN4455SW, Have some one introduce function of Start.c file in the demo code? what is attention when a project should be developed?

Labels (1)
0 Kudos
1 Reply

241 Views
trytohelp
NXP Employee
NXP Employee

Hi,

The Start.c file includes some function used by all applications:

              - initialize the Stack Pointer,

              - initialize global variables,

              - copy ROM to RAM (if used in your application),

              - call the main function.

The entry of the application is defined by default as _Startup.

This function is defined in the start.c file included by default in the project.

This file contains different functions used by the startup function.

The best is to keep it safe.

Inside the file you will file lot of comments explaining it.


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos