Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Oct. 30, 2009 14:59:53

r.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] hex vs. ihx


Is there some way to output a .hex file instead if the .ihx that SDCC
creates by default?
Thanks,
Ron


Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

#2 Oct. 30, 2009 15:33:39

Michel B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] hex vs. ihx


Le vendredi 30 octobre 2009, ronnym***@*ol.com a écrit :
> Is there some way to output a .hex file instead if the .ihx that SDCC
> creates by default?

I believe that the final machine code file comes from the linker, not from
sdcc... sdcc => assembly code => assembler => object code => linker =>
executable binary file, unless I'm mistaken...

I use sdcc from "piklab" with a PIC as target, and I get .hex files in the
end... But piklab takes cares of the whole project compiling chain
automagically. Just told piklab that my target device was a PIC something...

--
Michel Bouissou (OpenPGP ID 0xEB04D09C)


Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

#3 Oct. 30, 2009 16:07:37

Dennis M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] hex vs. ihx


ronnym581-ydxpq3io***@*ublic.gmane.org wrote:
> Is there some way to output a .hex file instead if the .ihx that SDCC
> creates by default?

Which target are you programming for? I'm familiar with tools for the
8051 (-mmcs51). objcopy can turn ihex files into binary images for
instance.

-Dennis




Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

#4 Oct. 30, 2009 16:50:45

Rene M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] hex vs. ihx


* ronnym***@*ol.com schrieb am 30.10.2009:

> Is there some way to output a .hex file instead if the .ihx that SDCC
> creates by default?

I build my projects in the following way:

$ sdcc -c Module1.c
$ sdcc -c Module2.c
$ sdcc Main.c Module1.rel Module2.rel
$ packihx Main.ihx > Main.hex

HTH René


Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

#5 Oct. 30, 2009 21:48:04

Maarten B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] hex vs. ihx


Yes, you can specify it on the command line using the -o
option. The .ihx is already an intel hex-file, though
not necessarily in ascending order.

> Is there some way to output a .hex file instead if the .ihx that SDCC
> creates by default?
> Thanks,
> Ron
>




Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

#6 Oct. 31, 2009 03:35:25

T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] hex vs. ihx


use the packihx command in the command window.

1. open command window (or equivalent in other operating systems)
2. navigate to the folder where the .ihx file is situated
3. type the following:
packihx nameOfFileYouWantToConvert.ihx > anyFileName.hex

--
Regards,
Tebogo Thebe





This message and attachments are subject to a disclaimer. Please refer
to www.it.up.ac.za/documentation/governance/disclaimer/ for full
details. / Hierdie boodskap en aanhangsels is aan 'n vrywaringsklousule
onderhewig. Volledige besonderhede is by
www.it.up.ac.za/documentation/governance/disclaimer/ beskikbaar.




Sdcc-user mailing list
Sdcc-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sdcc-user

Offline

#7 Dec. 19, 2017 19:15:09

Thomasjelve
Registered: 2017-12-16
Posts: 2
Reputation: +  0  -
Profile   Send e-mail  

[Sdcc-user] hex vs. ihx

This post is being moderated

Offline

Board footer

Moderator control

Enjoy the 21st of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support