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

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.