On the startup

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

On the startup

2,172 Views
pietrodicastri
Senior Contributor II

Good morning

I have  a problem with the start up.

in the startup_MK64F12.S I see the following lines

 

#ifndef __ATOLLIC__

    bl    __START

#else

    bl    __libc_init_array

    bl    main

#endif

 

If the __ATOLLIC__ is not defined it will branch to the __START. It is what happens using the KDS with GCC compiler.

But after the execution of the __START the sp is sinked down by about 32KB. I wander in the name of what. I have reserved

8KB for the stack and after the __START the sp is pointing out of the assigned area. Everything works because I have a lot of unusued

ram. but things are not in order...

Someone has a knowledge about this question???

Thank You everybody

Pietro

Labels (1)
Tags (2)
0 Kudos
Reply
3 Replies

1,374 Views
pietrodicastri
Senior Contributor II

Hello

Thank You for the interest.

I am using the KDS 3.0. I just create a project with the wizard for the MK64.

I don t see the attachment. If You can just renew I would like to have this suggestion.

Thank You

Pietro

0 Kudos
Reply

1,374 Views
pietrodicastri
Senior Contributor II

Thank You

I see now the attachment. We have the same file but the code is different. I don t know what happens.

For now I just prevent the execution of the __libc_init_array and it works normally.

Thank You

Pietro

0 Kudos
Reply

1,374 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hello Pietro.

I use KDS3.0, but the code from my side is not exact as yours.

what KDS version do you work with ?

i attached a video from my side. can you please check if it's same as yours?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply