EmbDev.net

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


Author: Sevc Dominik (sevc)
Posted on:

Rate this post
0 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

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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

Author: Sevc Dominik (sevc)
Posted on:

Rate this post
0 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

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.