Bare Metal Kinetis Startup in CW10.1

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

Bare Metal Kinetis Startup in CW10.1

Jump to solution
652 Views
ignisuti
Contributor IV

I have a Kinetis K40 Tower Kit which I'm programming with CW10.1.

 

When I create a new project without Device Initialization or Project Expert, and I go to the Project Properties, I can see that the Entry Point is __thumb_startup.

 

My question is...  Where is __thumb_startup?

 

kinetis_sysinit.c shows the prototype and I see it in the vector table, but I don't see the actual function. Oddly though, the code compiles and runs just fine starting at the first line in main().

Labels (1)
0 Kudos
1 Solution
244 Views
CrasyCat
Specialist III

Hello

 

Code for __thumb_startup is encoded in the run time library you are linking to your project. Name from this library starts with librt_Thumb.

 

The source code of the function __thumb_startup can be found in 

        {Install\MCU\ARM_EABI_Support\ewl\EWL_Runtime\Runtime_ARM\Source\startup.c

 

CrasyCat

View solution in original post

0 Kudos
1 Reply
245 Views
CrasyCat
Specialist III

Hello

 

Code for __thumb_startup is encoded in the run time library you are linking to your project. Name from this library starts with librt_Thumb.

 

The source code of the function __thumb_startup can be found in 

        {Install\MCU\ARM_EABI_Support\ewl\EWL_Runtime\Runtime_ARM\Source\startup.c

 

CrasyCat

0 Kudos