Bare Metal Kinetis Startup in CW10.1

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

Bare Metal Kinetis Startup in CW10.1

ソリューションへジャンプ
1,165件の閲覧回数
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().

ラベル(1)
0 件の賞賛
返信
1 解決策
757件の閲覧回数
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 件の賞賛
返信
1 返信
758件の閲覧回数
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 件の賞賛
返信