Firmware for Revision 2 Spintronics Hardware