[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#466939: ITP: hex2bin -- Converts Motorola and Intel Hex files to binary

On Fri, Feb 22, 2008 at 12:04:19AM +0100, Uwe Hermann wrote:
> Package: wnpp
> Severity: wishlist
> Owner: Uwe Hermann <uwe@debian.org>
> * Package name    : hex2bin
>   Version         : 1.0.6
>   Upstream Author : Jacques Pelletier <jpelletier@users.sourceforge.net>
> * URL             : http://sourceforge.net/projects/hex2bin/
> * License         : GPL
>   Programming Lang: C
>   Description     : Converts Motorola and Intel Hex files to binary
> Converts Motorola and Intel Hex (*.hex or *.ihx) files to binary.

FWIW, you can do this with the srecord package. Despite the name, it reads 
and writes a bunch of hex formats and binary, and can convert between them
and apply various other transformations (address shift, byte swapping)

Note that I'm not objecting to your ITP, only proposing an existing
solution. hex2bin might be simpler to use, although it could probably be
implemented as a simple wrapper script on-top of srecord, and packaged
with it. You can do a hex to binary conversion with:

srec_cat <infile> -Intel -output <outfile> -Binary

Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>

Reply to: