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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

507 次查看
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?

标签 (1)
0 项奖励
回复
1 回复

356 次查看
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 项奖励
回复