EmbDev.net

Forum: ARM programming with GCC/GNU tools Hex to Bin again


von Sevc D. (sevc)


Rate this post
useful
not useful
Hi all.
Some time before I put question on this forum convert Hex to Bin.
In IAR it's easy - set it on linker .
WinARM - it can be set on make file (hex or bin file generate)
but can any how to do it on Keil?
I create own prototype board (AT91SAm7S64) and use SAM BA only.
I compyle some example from IAR (mouse...)generate bin file and write to
MCU - work super, now I want try HID example from Keil but can convert
hex file to bin.I try any utility (hextobin.exe) but generate badly
file.

Any sugestion?

regards.

Dzairo

von Martin Thomas (Guest)


Rate this post
useful
not useful
Sevc Dominik wrote:

> Some time before I put question on this forum convert Hex to Bin.
> In IAR it's easy - set it on linker .
> WinARM - it can be set on make file (hex or bin file generate)
> but can any how to do it on Keil?
> I create own prototype board (AT91SAm7S64) and use SAM BA only.
> I compyle some example from IAR (mouse...)generate bin file and write to
> MCU - work super, now I want try HID example from Keil but can convert
> hex file to bin.I try any utility (hextobin.exe) but generate badly
> file.

Did you use hex2bin.exe from keil.com? If the "objcopy" in Keil's
uVision generates a hex-file which can not be used with tools that
Keil/Arm provides on it's web-server this is worth an e-mail to the
Keil-Support.

Anyway, IRC I have already suggested the tool objcopy which comes with
most arm-toolchain-colletions like WinARM or gnuarm as
arm-elf-objcopy(.exe). You could try objcopy with input-type ihex and
output-type binary. Please type arm-elf-objcopy --help for a quick
command-line-parameter overview.

Martin Thomas

von Sevc D. (sevc)


Rate this post
useful
not useful
HI all.
> Anyway, IRC I have already suggested the tool objcopy which comes with
> most arm-toolchain-colletions like WinARM or gnuarm as
> arm-elf-objcopy(.exe). You could try objcopy with input-type ihex and
> output-type binary. Please type arm-elf-objcopy --help for a quick
> command-line-parameter overview.
Thanks for help .
I try arm-elf-objcopy.exe to convert hex file to bin:
I use on command prompt arm-elf-objcopy -I ihex HID.hex -O binary
HID.bin
This command convert hex file to bin, use SAM BA to write file on MCU
and all work, but now I have question about HID . I thiks so if I plug
devico to USB and  OS windows XP install device like HID I can it see on
hardware list but where can I see property page? (If I good understand
HID can show page like property page on DirectShow (some filters)).

Thanks a lot.
regards

von Martin Thomas (Guest)


Rate this post
useful
not useful
Sevc Dominik wrote:
>... but now I have question about HID ...

It might be a good idea to start a new thread about this since this is
not related to your bin/hex-problem which seems to be solved now.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.