MKL46Z arm-none-eabi-gcc

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

MKL46Z arm-none-eabi-gcc

ソリューションへジャンプ
1,338件の閲覧回数
briceagbebe-cos
Contributor II

Hello,

I try to compile a very simple program to light up a LED from the FRDM MKL46 board.

I used the the datasheet as reference from where I took the registers address.

Let's suppose it works, I have a file called main.c I want to compile it, link it, and upload it to my MKL46 board.

The steps are presented below. I have to mention that I use Linux

 

arm-none-eabi-gcc mcpu=cortex-m0plus -c main.c -specs=nosys.specs        ---------> result main.o

arm-none-eabi-ld -o main.elf main.o                                 ----------> result main.elf

arm-none-eabi-objcopy -O binary main.elf main.bin      -----------> result main.bin

 

Then I copy the final file (main.bin) to my board,and, of course nothing happens.

What's wrong ?

 

Thank you,

Best Regards,

Bebe-Cosmin Briceag,

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,143件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi.

What IDE do you work with?

if with NXP KDS (Kinetis Design Studio Integrated Development Environment (IDE)|NXP ), we can edit, build,link, download code to flash automatically. users needn't focus on the mid steps..

KDS is free and easy to work with, if you don't use it. Can you try it?

 

Have a great day,
Jennie Zhang
 
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,144件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi.

What IDE do you work with?

if with NXP KDS (Kinetis Design Studio Integrated Development Environment (IDE)|NXP ), we can edit, build,link, download code to flash automatically. users needn't focus on the mid steps..

KDS is free and easy to work with, if you don't use it. Can you try it?

 

Have a great day,
Jennie Zhang
 
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信