Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

making a hex file from a CSV

making a hex file from a CSV

2011-10-26 by Philippe Habib

I need to make a hex file to load an eeprom from a CSV text file.  I've been looking around for a utility that does it but haven't found one.

Any recomendations?

Thanks.

RE: [AVR-Chat] making a hex file from a CSV

2011-10-26 by Ivan Vernot

Have a look at SRecord.

http://srecord.sourceforge.net/

 

Not sure if it will handler.csv specifically but it is extremely flexible and, as the author states,  ‘SRecord package is a collection of powerful tools for manipulating EPROM load files.’

 

HTH

Ivan Vernot
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Philippe Habib
Sent: Wednesday, 26 October 2011 1:40 PM
To: avr-chat@yahoogroups.com
Subject: [AVR-Chat] making a hex file from a CSV

 

  

I need to make a hex file to load an eeprom from a CSV text file. I've been looking around for a utility that does it but haven't found one.

Any recomendations?

Thanks.





[Non-text portions of this message have been removed]

Re: [AVR-Chat] making a hex file from a CSV

2011-10-26 by David Kelly

On Oct 25, 2011, at 9:39 PM, Philippe Habib wrote:

> I need to make a hex file to load an eeprom from a CSV text file.  I've been looking around for a utility that does it but haven't found one.
> 
> Any recomendations?

A CSV file is not the easiest file format to read but in about 30 minutes you should be able to write your own reader. The difficulty of making a generic CSV reader is in handling the presence of quotes, or not quoted, and escapes for quotes and newlines and stuff that might be included in the fields. But if you know something about your CSV file you can bypass many of those complications.

Then either write your own hex file directly or convert the CSV to binary and use one of many available tools to convert to the desired hex format.

#include <stdio.h>

main( int ac, char *av[] )
{
	...
	exit(0);
}


--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

Re: [AVR-Chat] making a hex file from a CSV

2011-10-26 by Philippe Habib

I was hoping to not have to do my own out of fear it would turn into a yak shaving excercise.  I wound up finding an editor that takes hex and writes a bin file, and a simple utility that takes the bin file and makes a hex file out of it.

Thanks for the help.
Show quoted textHide quoted text
----- Original Message -----
From: "David Kelly" <dkelly@hiwaay.net>
To: AVR-Chat@yahoogroups.com
Sent: Tuesday, October 25, 2011 8:45:21 PM
Subject: Re: [AVR-Chat] making a hex file from a CSV


On Oct 25, 2011, at 9:39 PM, Philippe Habib wrote:

> I need to make a hex file to load an eeprom from a CSV text file.  I've been looking around for a utility that does it but haven't found one.
> 
> Any recomendations?

A CSV file is not the easiest file format to read but in about 30 minutes you should be able to write your own reader. The difficulty of making a generic CSV reader is in handling the presence of quotes, or not quoted, and escapes for quotes and newlines and stuff that might be included in the fields. But if you know something about your CSV file you can bypass many of those complications.

Then either write your own hex file directly or convert the CSV to binary and use one of many available tools to convert to the desired hex format.

#include <stdio.h>

main( int ac, char *av[] )
{
	...
	exit(0);
}


--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.





------------------------------------

Yahoo! Groups Links

Re: [AVR-Chat] making a hex file from a CSV

2011-10-26 by Philippe Habib

thank you.  It ddn't quite do what I need, but it seems to do everything else.  Nice to know about.
Show quoted textHide quoted text
----- Original Message -----
From: "Ivan Vernot" <ivernot@optusnet.com.au>
To: AVR-Chat@yahoogroups.com
Sent: Tuesday, October 25, 2011 8:07:34 PM
Subject: RE: [AVR-Chat] making a hex file from a CSV

Have a look at SRecord.

http://srecord.sourceforge.net/

 

Not sure if it will handler.csv specifically but it is extremely flexible and, as the author states,  ‘SRecord package is a collection of powerful tools for manipulating EPROM load files.’

 

HTH

Ivan Vernot

 

 

From: AVR-Chat@yahoogroups.com [mailto:AVR-Chat@yahoogroups.com] On Behalf Of Philippe Habib
Sent: Wednesday, 26 October 2011 1:40 PM
To: avr-chat@yahoogroups.com
Subject: [AVR-Chat] making a hex file from a CSV

 

  

I need to make a hex file to load an eeprom from a CSV text file. I've been looking around for a utility that does it but haven't found one.

Any recomendations?

Thanks.





[Non-text portions of this message have been removed]



------------------------------------

Yahoo! Groups Links

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.