axol (almond_axol/hub/axol_hub.uf2) on the Axol Hub or the Mantis Hub. Both hubs are the same board and run the same firmware. The hub restarts into its bootloader, takes the new image and comes back as a CAN adapter. Both of its buses go quiet for a few seconds while it restarts.
Flashing needs root. Run the command as your normal user: it finds the hubs and asks its questions first, then asks for your sudo password.
You rarely need this command for the Axol Hub. Every operation that connects the arms, such as teleop, data collection, policy runs and control panel operations, checks the hub’s firmware and updates an outdated hub before it opens a bus. If the update can’t get root, the operation runs on the old firmware and logs an error that names
axol hub.flash. Set AXOL_HUB_FLASH=0 to turn off the automatic update.The Mantis Hub is not updated automatically. Plug it in and run axol hub.flash.hub.flash asks before it flashes one. Without a terminal it prints the --port command instead. Pass --port to flash it without asking.
The hub firmware drops queued motor commands when a bus stops responding. A command sent right before an emergency stop can’t reach the motors when power returns. The firmware also reports when nothing on a bus acknowledges frames, which is how Axol detects that motor power was cut. See can.setup.