2013-06-13 08:16 AM
HELLO
I want to upgrade the fırware of my design by usb stick , I am using the example given with the discovery board where I need a binary image of my Project myproject.BIN, I am using keil so I can generate hex file of my Project , how can I convert hex file to binary file inorder to use it? Thank you2013-06-13 08:26 AM
2013-06-13 09:02 AM
2013-06-13 09:10 AM
My ELFARM tool should work from the command line, and takes AXF files and converts to hex and binary.
[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/converting%20.axf%20to%20.hax%20to%20flash%20on%20to%20STM3240G-EVAL%20Board&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=594]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2Fconverting%20.axf%20to%20.hax%20to%20flash%20on%20to%20STM3240G-EVAL%20Board&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=5942013-06-13 09:24 AM
2013-06-13 09:32 AM
It runs from the command line, thus
ELFARM C:\STM32Seminar\32L152CDISCOVERY\Firmware\STM32L_Discovery_FW\Projects\HelloWorld\MDK-ARM\STM32L-Discovery\STM32L-Discovery.axf This will generate a bunch of screen output, it's an ELF file dumping tool, when it finishes there will be the files ELFARM.BIN/.HEX/.MOT/.TEK in the directory from which you ran the tool.2013-06-13 09:46 AM
Thank you now I could generate the bin file , but after downloading the program did not work !
Do I need to set something related to the address in myproject firware ?2013-06-13 10:38 AM
The base address for the data in the .BIN will be whatever you set up the compiler/linker to generate.
You could examine the file with your preferred file viewer or hex editor.2013-06-13 10:46 AM
2013-06-13 11:32 AM
Break out the debugger for your boot loader and step in. Follow the transition from the boot loader into the app code. Make a more clear determination of what is going wrong.
Check what's stored at 0x08008000 and confirm it matches what you expect.