AnsweredAssumed Answered

MKL46Z arm-none-eabi-gcc

Question asked by Briceag Bebe-Cosmin on Oct 31, 2016
Latest reply on Nov 1, 2016 by ZhangJennie

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,

Outcomes