Difference between revisions of "OHC Firmware"

From Kilobots
Jump to: navigation, search
Line 37: Line 37:
 
: '''1.  Problem''': Your system does not have the module m328 to update the kilobot firmware.
 
: '''1.  Problem''': Your system does not have the module m328 to update the kilobot firmware.
 
:     '''Solution:''' Edit the file /etc/avrdude.conf  and add at the end of the file the text of this file: [[File:avrdude.conf.m328|avrdude.conf.m328]]
 
:     '''Solution:''' Edit the file /etc/avrdude.conf  and add at the end of the file the text of this file: [[File:avrdude.conf.m328|avrdude.conf.m328]]
 +
 +
 +
== Firmware 1.0 ==
 +
 +
In case needed, here you can get the firmware 1.0 (from K-team): [[File:OhcFirstFirmware.hex|OhcFirstFirmware.hex]]
 +
 +
 +
== Links ==
 +
 +
For further information, check the kilobotics website: https://www.kilobotics.com/documentation
 +
 +
The source code of the firmware (both of OHC and kilobots) can be found here: https://github.com/acornejo/kilolib

Revision as of 19:19, 27 January 2016

We recommend to use the firmware 2.0, which has a more stable code, more supported communication interface and allows working with Linux and MacOS. Additionally, most of the tools provided in this website require the firmware 2.0 to work properly.

Upgrade to OHC Firmware 2.0

The information reported here below can be found also on the kilobotics website (https://www.kilobotics.com/documentation).


NOTE:
You will only need to do this once. If you already have the latest controller firmware and bootlader installed, then you can skip the next steps.


We recommend doing the firmware upgrade from a Linux machine.

Here below, the steps to upgrade the kilobot firmware:

1. Setup of your Linux machine installing avrdude. For Ubuntu, use the following command:
sudo apt-get install avrdude
2. Download the file File:Controller.hex
3. Set the OHC jumper to "internal" mode as in this Figure
4. Connect the OHC to the PC through Usb
5. Run (from the directory containing the controller file) the update command:
sudo avrdude -p m328 -P usb -c avrispmkII -U "flash:w:controller.hex:i"
6. If you succeed, the terminal message should say: Fuses OK. avrdude done. Thank you. Similarly to this screenshot.


Troubleshooting

1. Problem: Your system does not have the module m328 to update the kilobot firmware.
    Solution: Edit the file /etc/avrdude.conf and add at the end of the file the text of this file: avrdude.conf.m328


Firmware 1.0

In case needed, here you can get the firmware 1.0 (from K-team): File:OhcFirstFirmware.hex


Links

For further information, check the kilobotics website: https://www.kilobotics.com/documentation

The source code of the firmware (both of OHC and kilobots) can be found here: https://github.com/acornejo/kilolib