This folder contains the firmware that runs on the robots themselves. The cpu/ folder contains the c code that runs on the ARM microprocessor and the fpga/ folder contains the verilog code for the on-board fpga.
There are two main ways to load the firmware onto the robot: over USB and over the radio. If the robot already has working firmware and you'd like to load a new version, you can use the regular USB install. Otherwise, you'll have to program it using SAMBA
Turn the robot on so that its radio can communicate with the radio base station connected to your computer. Then in the software directory, use scons to begin the update:
$ scons robot-ota
The computer will then rebuild the firmware if necessary, then load it onto all robots that are turned on and within radio range.
- Turn on the robot and plug it into your computer with a micro USB cord
- Run
$ sudo scons robot-prog
- Turn on the robot and plug it into your computer with a micro USB cord
- Set DIP switch 3 on the robot to ON
- Wait 10 seconds
- Turn DIP switch 3 off
- Turn the robot off and then back on again
- Run
$ sudo scons robot-prog-samba
to load the firmware