Yahoo Groups archive

AVR-Chat

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

Message

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.

----- 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

Attachments

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.