Generating BIN file using Keil uVision 5
- This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You cannot reply to this topic.
Tagged: Boot Loader, FOTA
Hi,
i am using Keil uVision 5 for building application for my Dragonfly board. if i flash the HEX file generated by Keil using ST flashing tool, the application is working fine. But when i convert HEX file to BIN format using fromelf.exe utility, and use this file for over the air transfer, the code doesn’t work.
one observation is that, the BIN file generated by mbed online compiler has also boot loader code included, which was not part of file, generated by Keil compiler.
Does, anybody know, how i can add boot loader code as part of BIN file generated by Keil compiler?
Kiran,
The mbed-cli tools automatically prepend the bootloader to applications built for the Dragonfly. When you export to an IDE or compile through an IDEs GUI instead of using mbed-cli, you don’t get the bootloader.
It’s possible to configure a post-build process to prepend the bootloader, but it would be easier to just use mbed-cli. It is possible to configure mbed-cli to compile using the ARM toolchain used by uVision.
https://github.com/ARMmbed/mbed-cli#toolchain-selection
Cheers,
Mike