Hex to Bin again

OP #1171145
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
Guest #1171146
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
OP #1171147
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
Guest #1171148
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.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.