Coder Social home page Coder Social logo

raulestevez-dev / eepromihex Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 60 KB

A simple program that will convert any CSV data you want to burn into a avr's EEPROM (or others) to a IHEX-formatted file that avrdude will understand.

Home Page: https://github.com/SarKing/eepromIHEX

License: MIT License

C 97.41% Makefile 2.59%
eeprom eeprom-programmer ihex hex avr avr-programming avr-microcontroller microcontroller avrdude arduino

eepromihex's Introduction

eepromIHEX

Takes data from a CSV file and formats it to IHEX. This file is then ready to be uploaded into an avr eeprom using avrdude.

Installation

For installing, clone this repository to your computer, enter in the folder eepromIHEX and type "make", then "make install" as root.

$ git clone https://github.com/SarKing/eepromIHEX
$ cd eepromIHEX
$ make
$ sudo make install

By default it's installed in /opt/eepromIHEX

Uninstall

If you want to uninstall the application enter with your terminal in the folder that you downloaded and type:

$ sudo make uninstall

Usage

The basic use of this application just requires a CSV data file.

$ eepromIHEX data_file

And it will generate a file called "a.eep" that contains your data formatted into IHEX.

But you have more customization in the form of arguments.

Arguments

-output             -o      The name of the output file. DEFAULT: a.eep
--datalenght        -d      Maximum number of bytes per IHEX entry. DEFAULT: 32 
--address           -a      The first address you want to write to. DEFAULT: 0
--verbose           -v      Prints verbose information
--help              -h      Prints help page
--version                   Displays the version message

Examples

Get data from data.csv, output IHEX formatted data to eeprom.eep

$ eepromIHEX -o eeprom.eep data.csv

Format IHEX with 8 byte data length instead of the default 32

$ eepromIHEX -d 8 data.csv

Start writing to eeprom address 0xFF instead of the default 0

$ eepromIHEX -a 255 data.csv

CSV File

The CSV file used as data source needs to be like this

00,FF,5D,6E,44,62,86,72,D2,55,12,22,4F,FF,00,00,00,23,45,63,56

It causes no problem if two or more commas are together, like for example

00,FF,,6E,44,62,86,,,55,12,22,,,,,00,23,45,63,56

But by no means data can be more than 1 byte long, so this is prohibited and will cause a malfunction

00,FFF,545D,6E44,62,86,72FF,D2,55,12,22,4F,FF,00,00,00,23,45,63,56

Uploading

Once you have the .eep file, if you want to upload it to a AVR microcontroller using avrdude you have to use this command.

$ avrdude -c "programmer" -p "mmcu" -U eeprom:w:"filename":i

Where "programmer" is the programmer you use (USBTiny, USBasp...), "mmcu" is the microcontroller you use (attiny85, atmega328...) and "filename" is the .eep file you just generated, the remaining leave it as is.

Author

Raul Estevez Gomez. Contact email: [email protected]
Please feel free to contact me if you have any type of suggestion or question.

License

You can read the license here

eepromihex's People

Contributors

raulestevez-dev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.