Skip to content
TheKikGen edited this page Dec 22, 2023 · 16 revisions

Welcome to the USBMidiKliK wiki!

How to compile the firmware

  1. You must have the WINAVR or gcc-avr installed on your computer.

sudo apt-get install gcc-avr binutils-avr avr-libc gdb-avr avrdude

  1. Clone the USBMidiKlik source code and its submodules lufa and midiXparser :

git clone --recurse-submodules https://github.com/TheKikGen/USBMidiKliK

  1. To build for uno, use 'make uno'.

To get help, use 'make mdkhelp'.

Flashing the Atmega16U2

Usually, there are two microcontrollers on the Arduino board: ATMEGA328P (328P) and ATMEGA16U2 (16U2). You need to update firmware of 16U2 to become a midi interface.

  1. Install Atmel FLIP Software You will need Atmel FLIP software to update the firmware inside 16U2. https://www.microchip.com/en-us/development-tool/FLIP Install it.

  2. Connect your Arduino board to USB. Touch briefly pins 5-6 of the ISCP1 header to reset the 16U2. image

  3. Load the USBMidiKliK_dual_uno.hex (File/Load HEX File) into the Flip buffer

  4. Press “Run” button in the "Operations Flow group box

  5. Disconnect / reconnect from USB

Clone this wiki locally