compiling only in arm mode in CW 10.5

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

compiling only in arm mode in CW 10.5

729件の閲覧回数
stefanomanca
Contributor III

Hi, where I find the menu to set the compiler only in ARM mode (not thumb)?

 

Thank you.

 

Stefano M.

ラベル(1)
タグ(3)
0 件の賞賛
3 返答(返信)

460件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Stefano:

That option is in Project -> Properties -> C/C++ Build -> Target Processor.

:smileyalert: BUT if you are using a Kinetis L or Kinetis K device, then you must not uncheck that option, since Cortex M0 and Cortex M4 only support thumb mode, and you will receive errors during compile time.

Thumb.png

Hope this helps!

Jorge Gonzalez

0 件の賞賛

460件の閲覧回数
stefanomanca
Contributor III

Hi Jorge, I don't understand. I'm using a kl15, it should have a cortex m0+ core, but I get

"/Sources/ProcessorExpert.c:1:0: error: target CPU does not support ARM mode

mingw32-make: *** [Sources/ProcessorExpert.o] Error 1"

So, what happens?

I'm not so skilled.

Thank you.

0 件の賞賛

460件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello:

That is the error I mentioned. Cortex M0+ in your KL15 cannot support ARM mode instruction set. You need to check that option back, so the compiler uses the thumb instruction set.

To double check this info, take a look at the specifications tab from the next link at ARM web page:

http://www.arm.com/products/processors/cortex-m/cortex-m0plus.php

Regards!

Jorge Gonzalez

0 件の賞賛