/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / BIN-Files with Ride 7?

Username:     
Password:     
             

Forum

# 1   2010-08-29 11:08:48 BIN-Files with Ride 7?

Eselchen
Member
Registered: 2008-12-02
Posts: 18

BIN-Files with Ride 7?

Hello,
I'm trying to program a type of bootloader with the STM32. For this I need the originally *.bin-files. But unfortunally the Ride-IDE outputs only *.hex-files. Is there any possibility to get out the *.bin direkt or have I to convert this manually?

Yours Kai

Offline

 

# 2   2010-08-30 07:58:03 BIN-Files with Ride 7?

VincentC
Administrator
Registered: 2007-11-08
Posts: 149

Re: BIN-Files with Ride 7?

Hi,

There is no option to do this automatically.

You can convert hex or elf files to bin format using the objcopy utility from gcc installed with Ride. (arm-none-eabi-objcopy)
You can also load the hex file in RFlasher and then use the Save command to save the data in a bin file.

I hope it helps.

Best Regards,

Vincent

Offline

 

# 3   2010-08-31 05:40:38 BIN-Files with Ride 7?

Eselchen
Member
Registered: 2008-12-02
Posts: 18

Re: BIN-Files with Ride 7?

Hi Vincent,
It's in fact a little tricky because of the arguments, but it works, thanks a lot.

For all those, who have the same problem:
Objcopy -I ihex -O binary source.hex destination.bin
AND: pay attention to lowercase/uppercase (as I did not the first times wink )

Last edited by Eselchen (2010-08-31 05:41:21)

Offline

 

Board footer