Compiling AVR HV2 - dilshan/avr-hv2 GitHub Wiki
This section of the documentation describes prerequisites and steps to compile both AVR-HV2 firmware and driver software. Since AVR-HV2 support for both Windows and Linux, compilation can also perform on one of those operating systems.
For the compilation the recommended version of operating systems are:
- Debian based Linux distribution with kernel version 5.0 or newer.
- Window 8.1 or newer version
Compiling the AVR-HV2 driver software
Lazarus IDE version 2.0.0 or newer version is required to compile the AVR-HV2 driver application. Before compiling the AVR-HV2 driver, the Lazarus IDE is necessary to build with the following packages:
- LazSerial - https://github.com/JurassicPork/TLazSerial
- KControls - https://github.com/kryslt/KControls
The source codes and the Lazarus packages are available in the above stated GitHub repositories.
After installing the above components, AVR-HV2 compilation is straightforward and may not need any configuration changes. To reduce the size of the executable, always build the AVR-HV2 in release mode.
Compiling the firmware
To build the AVR-HV2 firmware, use the newest version of Arduino IDE and also, make sure to select "Arduino / Genuino Mega or Mega 2560" as a target board.
Before transfer the firmware, removes any AVR MCUs attached to the programmer and disconnects the +12V power source from the Arduino board.