Startup code for MPC5777C

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

Startup code for MPC5777C

6,590 次查看
lucas_santos
Contributor II

Dear all,

Please, I would like a help to clarify the startup procedure for MPC5777C processor.

As I understood, it goes from:

init.s --> ctr0.s --> init.c --> main code .c

I am confused about the init.s and ctr0.s.

Do they have some kind of overlap?

Thanks,

Lucas

2 回复数

5,770 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

Your request is quite confusing.

Are you talking about your custom startup?

Some startup embedded into compiler or some environment (GHS, WR, S32DS) ?

Could you share the files you are referring to?

Peter

5,766 次查看
lucas_santos
Contributor II

Hi Peter,

Thank you for your answer.

I am sorry the lack of details in my message... my fault.

I am talking about the default startup code as shown below. According to

this picture, the startup code starts in the crt0.s.

Source:

Wind River® Diab Compiler User's Guide for PowerPC, 5.9.6

However, in the document "MPC5777C Software Initialization and

Optimization, Rev. 0, 09/2015" we have the init.s file as the first one.

See chapter 6.1.

So, that was my question... the difference between crt0.s and init.s.

After some reading, I figured out that the crt0.s is related to Diab

Compiler, whereas the init.s is for GHS compiler.

So, in Diab Compiler, which is my case, we do not have the init.s file,

only the crt0.s.

Agree?

Thanks,

Lucas

0 项奖励
回复