Flashing binary on Freescale Freedom board

If you are looking for a GCC hello world samples to getting started with your Freescale Board, then download this one:


The above file is the second file from this post:

I used gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2 as toolchain, but you can use more recent version (current version is gcc-arm-none-eabi-4_7-2013q1-20130313-linux.tar.bz2).

After compiling just copy main.srec to board disk unit which appear with you plug it in your computer (OpenSDA MSD).

Case you flashed your board with MBED firmware, you will need more some steps:

Create the binary from ELF file:

$ arm-none-eabi-objcopy -O binary main.elf main.bin

Edit resulting binary (main.bin) and replaces all 0s from 0x400 up to 0x40F with these values:

0x00000400 ff ff ff ff ff ff ff ff-ff ff ff ff fe ff ff ff

I used hte hexa-editor to do it, be free to use the editor of your choice.