Uploading the KontroLIR Firmware: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
First, you should familiarize yourself with using the Arduino IDE to compile(verify) and upload sketches. Then simply follow the instructions below to upload the firmware to KontroLIR. | First, you should familiarize yourself with using the Arduino IDE to compile(verify) and upload sketches. Then simply follow the instructions below to upload the firmware to KontroLIR. | ||
== Known Issues == | |||
We have observed that there can be issue with the bootloader failing to activate when the MCU is in PWR_DOWN sleep mode (this is normal with the KontroLIR firmware loaded). So if you cannot get the bootloader to update the firmware from the Arduino IDE, there are 2 options, as follows: | We have observed that there can be issue with the bootloader failing to activate when the MCU is in PWR_DOWN sleep mode (this is normal with the KontroLIR firmware loaded). So if you cannot get the bootloader to update the firmware from the Arduino IDE, there are 2 options, as follows: | ||
Line 13: | Line 14: | ||
# This note only applies when KontroLIR firmware is loaded or when the MCU is in sleep mode. It does not apply if the supplied Test firmware is loaded. | # This note only applies when KontroLIR firmware is loaded or when the MCU is in sleep mode. It does not apply if the supplied Test firmware is loaded. | ||
== Steps to upload KontroLIR Firmware == | |||
# You will be provided a link to download the firmware source code, after purchasing your own KontroLIR remote control device, from our shop or an approved partner. | # You will be provided a link to download the firmware source code, after purchasing your own KontroLIR remote control device, from our shop or an approved partner. | ||
# Make sure you have installed and tested support for the ATmega328PB, into your Arduino IDE. (use the [https://github.com/MCUdude/MiniCore minicore from MCUdude]) | # Make sure you have installed and tested support for the ATmega328PB, into your Arduino IDE. (use the [https://github.com/MCUdude/MiniCore minicore from MCUdude]) |
Revision as of 09:12, 11 December 2019
First, you should familiarize yourself with using the Arduino IDE to compile(verify) and upload sketches. Then simply follow the instructions below to upload the firmware to KontroLIR.
Known Issues
We have observed that there can be issue with the bootloader failing to activate when the MCU is in PWR_DOWN sleep mode (this is normal with the KontroLIR firmware loaded). So if you cannot get the bootloader to update the firmware from the Arduino IDE, there are 2 options, as follows:
- Press the KontroLIR buttons 1,3,7,9 in that order. The red LED will then start blinking for up to 30 seconds - indicating that it has not yet entered sleep mode. You can now proceed to upload the firmware using the Arduino IDE as normal. This sequence only behaves this way when powered from USB(5V). When operating from batteries this button sequence is ignored.
- When applying power for the first time, KontroLIR will blink the LED for up to 30 seconds to allow time for the bootloader to activate properly. Once you have supplied power to KontroLIR, you can immediately upload firmware using the Arduino IDE. This blinking after power on operates both when powered from USB & batteries.
- This note only applies when KontroLIR firmware is loaded or when the MCU is in sleep mode. It does not apply if the supplied Test firmware is loaded.
Steps to upload KontroLIR Firmware
- You will be provided a link to download the firmware source code, after purchasing your own KontroLIR remote control device, from our shop or an approved partner.
- Make sure you have installed and tested support for the ATmega328PB, into your Arduino IDE. (use the minicore from MCUdude)
- Remove any batteries from KontroLIR and connect the Serial USB adapter to KontrolIR. (This USB adapter, requires a DTR or RTS pin to work - refer to pin out for firmware upload using the bootloader.)
- Make sure to try out the example blink sketch or an example Serial print sketch to verify correct operation of the ATmega328PB with your Arduino IDE, before proceeding to use KontroLIR firmware.
- Insert the USB cable into the PC running the Arduino IDE.
- Select the correct COM port number of the serial USB adapter, in the Arduino IDE Tools->Port menu.
- Select clock speed of 8MHz for the KontroLIR firmware.
- Compile(verify) the firmware using the Arduino IDE.
- Upload the firmware to the KontrolIR device. (See note above about blinking LED. It is better to upload when the red LED is Blinking)
- Close the Arduino IDE.
Congratulations! - you are now ready to use the reference KontroLIR firmware. Of course this will not necessarily work with your own equipment, but is an important first step.