Git Product home page Git Product logo

avr-upload's Introduction

avr-upload

Option 1: Blink Test Program

To load a test "blink" program:

cd blinker

sudo ./flash_blink_boot_combo.sh

This loads the .ino file here, which has been combined with an appropriate bootloader into a single .hex file.

There are LED indications of success / failure:

Success. If the board boots successfully, it should blink the on board LED on pin 9 at a rate of once per second (on for one second, off for one second, repeat).

Failure. If the board doesn't work, it won't blink.

Option 2: Datalogger Test Program

To load a test "logger" program:

cd logger

sudo ./flash_logger_boot_combo.sh

This loads the .ino file here, which has been combined with an appropriate bootloader into a single .hex file.

There are LED indications of success / failure:

Successful boot. If the board starts up successfully, it will first blink 3 times at a rate of one second ON, one second off.

Failed boot. No blinking at all.

Successful datalogging / writing to SD card. If a micro SD card is present, and it is possible to write to it, the datalogger will:

  • sleep for 8 seconds (no visible activity)
  • record a line to the micro SD card
  • blink once very briefly (only 20 milliseconds)
  • repeat

Fail to find / write to SD card. If the board starts up but no micro SD card is present, or it is not possible to write to it, the datalogger will simply blink constantly at a rapid rate (200 milliseconds on, 200 milliseconds off), ad infinitum.

Fail to find / access onboard RTC. If the board starts up and it cannot access the onboard RTC, it will also blink constantly at a rapid rate (200 milliseconds on, 200 milliseconds off), ad infinitum.

Creating a new combined program + bootloader hex file

cd combining_boot_and_program

./combine.sh

which will produce an out.hex file.

You can edit the combine.sh file to reflect your own bootloader and program hex file names.

Notes

all above is on Ubuntu; to install avrdude: sudo apt-get install avrdude

sanity check to see if can connect to programmer:

sudo avrdude -c usbtiny -p m328p

followed tutorial here:

https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader

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.