[Last update 2015 Jun 20]
The firmware of the motor control board mounted on MyzharBot (uNav starting from v4, RoboController up to v3) is constantly updated to introduce improvements.
The firmware is the same for both uNav and RoboController boards.
This is the procedure to get the firmware from Github, to compile it under MplabX and finally to upload it to the board.
Note: The following procedure is related to a Linux Operating system (Ubuntu), but can be replicated also under windows, replacing the Github phase with the correct one.
- If you do not have MplabX installed on your system go to Microchip website and get the last one, install MplabX IDE (currently v3.05) and Mplab XC16 compiler (currently v1.24)
- Install “git” on your system if you do not have it
sudo apt-get install git
- If this is the first time that you upload the firmware on the control board follow step “A” else follow step “B”
- [To get the last source code] Go to your development folder (i.e. cd ~/devel) and insert the following commands to get the latest working firmware:
$ mkdir uNAV $ cd uNAV $ git clone https://github.com/officinerobotiche/or_bus_c.X.git $ cd or_bus_c.X $ git checkout develop $ cd .. $ git clone https://github.com/officinerobotiche/or_common_c.X.git $ cd or_common_c.X $ git checkout develop $ cd .. $ git clone https://github.com/officinerobotiche/uNAV.X.git $ cd uNAV.X $ git checkout develop
- [To update the source code to last changes] Go to your development folder (i.e. cd ~/devel) and insert the following commands to get the latest working firmware:
$ cd uNAV $ cd or_bus_c.X $ git pull $ git checkout develop $ cd ../or_common_c.X $ git pull $ git checkout develop $ cd uNAV.X $ git pull $ git checkout develop
- [To get the last source code] Go to your development folder (i.e. cd ~/devel) and insert the following commands to get the latest working firmware:
- At this point the code is updated, so we can run MplabX IDE to compile it
- Open project “uNAV.X”
- Select the correct project according to your board: uNAV_V1 or RoboController_V3
- Click on the “hammer” and compile the project [Build Project (uNAV)]
- Now connect your Microchip programmer to the board (I use PICkit 3 In-Circuit Debugger)
- Power on the board
- Upload the firmware using the command Make and Program Device (project uNAV)
- If no error messages are come out than the board is ready to drive the robot