.. _common-loading-firmware-onto-pixhawk: ======================================== Loading Firmware onto Pixhawk/APM2.x/PX4 ======================================== These instructions will show you how to download the latest firmware onto the Pixhawk, APM 2.x or PX4 controller. [copywiki destination="copter,plane,rover,planner"] Connect controller to computer ============================== Once you've :ref:`installed the Mission Planner ` onto your computer, connect the autopilot board to your computer using the micro USB cable as shown below. Use a direct USB port on your computer (not a USB hub). .. figure:: ../../../images/pixhawk_usb_connection.jpg :target: ../_images/pixhawk_usb_connection.jpg Pixhawk USB Connection .. figure:: ../../../images/apm_micro_usb.jpg :target: ../_images/apm_micro_usb.jpg APM USB Connection .. figure:: ../../../images/PX4FMU_PX4IO_USB.jpg :target: ../_images/PX4FMU_PX4IO_USB.jpg PX4 USB Connection Windows should automatically detect and install the correct driver software. Connect to Mission Planner ========================== Open the *Mission Planner* and select the COM port drop-down on the upper-right corner of the screen (near the **Connect** button). Select **AUTO** or the specific port for your board (**PX4 FMU** or **Arduino Mega 2560**). Set the Baud rate to **115200** as shown. Don't hit **Connect** just yet. .. image:: ../../../images/Pixhawk_ConnectWithMP.png :target: ../_images/Pixhawk_ConnectWithMP.png .. image:: ../../../images/connect-to-com-port.png :target: ../_images/connect-to-com-port.png Install firmware ================ On the Mission Planner's **Initial Setup \| Install Firmware** screen select the appropriate icon that matches your frame (i.e. Quad, Hexa). .. figure:: ../../../images/Pixhawk_InstallFirmware.jpg :target: ../_images/Pixhawk_InstallFirmware.jpg Mission Planner: Install FirmwareScreen Answer **Yes** when it asks you "Are you sure?". (e.g. following will appear in case of ArduCopter) .. figure:: ../../../images/Pixhawk_InstallFirmware3.jpg :target: ../_images/Pixhawk_InstallFirmware3.jpg Mission Planner: Start Install FirmwarePrompt After the Mission Planner detects which board you are using (i.e. Pixhawk) it will start firmware loading. If all goes well you will see some status appear on the bottom right including the words, "erase...", "program...", "verify.." and "Upload Done". Following message pop-up. Press **OK** accordingly. The firmware has been succesfully uploaded to the board. .. figure:: ../../../images/Pixhawk_InstallFirmware2.png :target: ../_images/Pixhawk_InstallFirmware2.png Mission Planner: Finish Install FirmwarePrompt Testing ======= You can test the firmware is basically working by switching to the *Mission Planner Flight Data* screen and pressing the **Connect** button. The HUD should update as you tilt the board. :ref:`Connect Mission Planner to AutoPilot ` has more information on connecting to Mission Planner.