Startup code for MPC5777C

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Startup code for MPC5777C

4,043件の閲覧回数
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 返答(返信)

3,223件の閲覧回数
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

3,223件の閲覧回数
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 件の賞賛