This Flexible In-system Programmer is a programmer for 8bit AVR processors. It allows to write a previously built HEX file into the flash of your microprocessor. The software runs under Windows and GNU/Linux. FLIP needs a Java Runtime Environment (JRE). It supports programming over RS232, USB and CAN.

Bootloader

For FLIP to work, you have to install a bootloader on your target. New processors come with the bootloader present. However, as soon as you use a debugger, such as a JTAGICE, you will overwrite the preinstalled bootloader. You need a debugger to flash the bootloader again. Bootloaders for our supported processor types can be found below.

Steps

  1. Get the newest version of FLIP from https://www.microchip.com/en-us/development-tool/FLIP 
  2. Make sure that a bootloader is present. When present, it will show in your devices list, e.g. as ATmega16U4. If not, flash a new bootloader with the aid of Microchip Studio and a debugger such as JTAGICE. Make sure to use the right bootloader for your device.
  3. Check the fuses on your device with the Device Programming Tool in Microchip Studio. The HWBE fuse must be set and the BOOTRST fuse must be cleared in order for the bootloader to start correctly.
  4. Start FLIP
  5. Start the bootloader with pressing the push button S5 on your board (HWB). Keep it presses while pressing S6 (RESET) shortly, release S6, then release S5.
  6. Choose the proper device with Device  Select…  ATmega[xx]U4 (or any other type) → OK
  7. Connect your board with the host over USB: Settings  Communication  USB  Open.
  8. Choose HEX file: File  Load HEX File… OK, you must have built your project beforehand which results in a specific HEX file.

  9. Program the processor with Run.
  10. Press S6 (RESET) on the target board to start your newly flashed program.
  11. Repeat from step 5 when a new program should be loaded.

Keeping the bootloader

Unfortunately, it is not possible with Microchip studio to keep the bootloader when flashing with a debugger such as JTAGICE. The whole program memory together with the bootloader section will be erased. Other tools allow partial erase. 

Bootloader

  • Keine Stichwörter