AnsweredAssumed Answered

Where is source code for startup?

Question asked by Antonio Quevedo on Jul 20, 2013
Latest reply on Jul 23, 2013 by Antonio Quevedo

Hello,

 

 

In another post, I mentioned that I am working on very basic code in CW10.4 for the FRDM-KL25 board, to be used on a software lab course for engineering students. Now I am analyszing the startup code, and I have noticed that the first function that is called is "__thumb_startup()", located at __arm_start.c file. This function calls some other functions, named __init_registers(), __init_hardware(), __load_static_base(), __init_pid(), __init_pic(), zero_fill_bss(), __copy_rom_sections_to_ram(), __call_static_initializers(), and __init_user().

 

I have tried to find the sources for these functions, but so far I could not locate them. Can anyone give me a hint?

 

One more thing, is there any good reference for position-independent data and relocatable code, related to Kinetis L series, and/or CodeWarrior 10?

 

 

Thanks in advance.

Outcomes