Pi AVR Programmer HAT Hookup Guide

Pages
Contributors: QCPete
Favorited Favorite 4

ISP Programming: Stand-Alone (aka Headless)

In this section, we are going to program using the Raspberry Pi "headless" (aka no monitor, mouse or keyboard). We will use the built in capacitive touch pad to engage programming and status LEDs to indicate success or failure. For this example, we will program the Arduino optiboot bootloader onto the RedBoard.

After you have setup your raspi for use with the Pi AVR Programmer HAT, then there are two important things to consider while using it as a stand-alone programmer:

  • Your hex file -- This should live in the '/home/pi' directory.

  • pi_program.sh -- This shell file contains all the settings for programming and can be edited with any text editor.

After your setup and powered, programming is a simple as 1-2-3:

  1. To engage programming in stand-alone use, simply tap the capacitive touch pad labeled, "TAP TO PROGRAM".

  2. The STAT LED will go solid during programming. This can take a couple seconds -- depending on the size of your hex file.

  3. Finally, the SUCCESS and FAIL LEDs will indicated the status at each stage of programming

To see more about the results of your programming (debug messages from avrdude), you will need to access some files on your raspi. During each cycle of programming, the output from avrdude is saved to some text files that live within /home/pi.

  • /home/pi/fuse_results.txt

  • /home/pi/flash_results.txt

  • /home/pi/SERIAL_UPLOAD/serial_upload_results.txt -- Note that this will only be updated if you did any serial uploading