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