Firmware for portable tool