AnsweredAssumed Answered

On the startup

Question asked by Pietro di Castri on Nov 18, 2015
Latest reply on Dec 1, 2015 by Pietro di Castri

Good morning

I have  a problem with the start up.

in the startup_MK64F12.S I see the following lines


#ifndef __ATOLLIC__

    bl    __START


    bl    __libc_init_array

    bl    main



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