Software Implementation and Usage

The firmware is made for the AVR-GCC compiler with Atmel Studio 7.0.582. The functions may be ported to other compilers, but this may require some work since several functions from the avr-gcc toolchain are used. When using Self-programming it is essential that the functions for writing are located inside the Boot section of the Flash memory. The procedure for placing the flash write function inside the boot section is explained under the section Placing Selected Functions Inside the Boot Section. The remaining functions can be placed in the application section of the flash. All other necessary configurations concerning the firmware are done inside the file Self_programming.h.

The zip file available with this application note consists of an example project created using Atmel Studio 7.0 for the device ATmega128. In this example project, the flash write function is located in the Boot section of Flash and remaining code placed in the application section of flash.