flashing lps-node-firmware not creating .bin and .hex file

All discussions related to the Loco Positioning system
Post Reply
Narasing
Beginner
Posts: 7
Joined: Thu Feb 23, 2017 9:43 am

flashing lps-node-firmware not creating .bin and .hex file

Post by Narasing » Tue Jul 11, 2017 1:06 pm

Hi,

I'm new to Eclipse IDE environment,I'm using BitCraze VM and updated all projects with the icon.

bitcraze@bitcraze-vm:~/projects/lps-node-firmware$ make

------------------------------------------------------------------------------------------------------------------
arm-none-eabi-size bin/lps-node-firmware.elf
text data bss dec hex filename
80176 712 11836 92724 16a34 bin/lps-node-firmware.elf
BOOTLOADER Support: 0
arm-none-eabi-objcopy bin/lps-node-firmware.elf -O binary bin/lps-node-firmware.bin
python2 tools/make/dfu-convert.py -b 0x8000000:bin/lps-node-firmware.bin bin/lps-node-firmware.dfu
rm bin/lps-node-firmware.bin
--------------------------------------------------------------------------------------------------------------------

but in bin file lps-node-firmware.dfu and lps-node-firmware.elf are created.
not lps-node-firmware.bin and lps-node-firmware.hex

Thanks.



arnaud
Bitcraze
Posts: 2070
Joined: Tue Feb 06, 2007 12:36 pm

Re: flashing lps-node-firmware not creating .bin and .hex file

Post by arnaud » Tue Jul 11, 2017 1:27 pm

Hi,

The hex file is never created and the .bin file is used as source for the DFU file but is then cleaned up.

You can create the bin file with: "arm-none-eabi-objcopy bin/lps-node-firmware.elf -O binary bin/lps-node-firmware.bin"

And the hex file with: "arm-none-eabi-objcopy bin/lps-node-firmware.elf -O ihex bin/lps-node-firmware.hex"

Why do you need these files? Feel free to add new targets to the make file an do a pull request if this is useful to you.

Post Reply