Installing ArduPilot/PX4/INAV/Betaflight on H743 Flight Controller

MicoAir Tech www.youtube.com

簡要總結

本影片展示如何在 Meco Air 743 AIO 上刷寫四種主要的開源飛控韌體:ArduPilot、PX4、EmuFlight 和 Betaflight。影片涵蓋了刷寫前的準備工作,包括下載必要的工具,以及針對每種韌體的詳細刷寫步驟和注意事項,解決刷寫過程中可能遇到的問題。

  • 下載必要的工具和韌體檔案。
  • 使用 STM32CubeProgrammer、Mission Planner、QGroundControl、EmuFlight Configurator 和 Betaflight Configurator 等工具進行刷寫。
  • 針對不同韌體,詳細介紹了刷寫步驟和注意事項。

下載所需工具

首先,需要從 mecoair.com 下載刷寫工具。在網站的飛控部分,選擇「在 MECO R7 上安裝韌體」的選項,然後點擊連結直接下載工具。這些工具包括 DFU 驅動程式安裝軟體 ZADC、官方 STM32CubeProgrammer、USB 驅動程式安裝程式 ZADC、Arduino Pilot Ground Station Mission Planner、PX4 Ground Station QGroundControl、EmuFlight Configurator 和 Betaflight Configurator。

安裝 DFU 驅動程式

按住飛控板上的 Boot 按鈕,然後通過 USB 線將其連接到電腦。打開裝置管理器,Windows 應將飛控識別為 DFU 模式下的未知裝置。使用 Zadig 安裝驅動程式,以管理員身份運行 Zadig,點擊「選項」並選擇「列出所有裝置」。找到名為「DFU in FS mode」的項目,點擊「安裝驅動程式」並等待安裝完成。安裝完成後,Windows 就能正確識別 DFU 模式下的飛控。

使用 STM32CubeProgrammer 刷寫 ArduPilot 韌體

在 7.4.3 版本的使用者手冊中,找到 ArduPilot 韌體的官方下載連結。選擇 Copter 韌體,滾動到 4.6.2 的穩定版本,找到 MecoAir 743 版本 2。下載以「.app」或「.hex」結尾的檔案。如果要使用 STM32CubeProgrammer 刷寫,下載檔名包含「bl.hex」的檔案,這個檔案包含引導程式。打開 STM32CubeProgrammer,按住 Boot 按鈕,然後通過 USB 線連接飛控到電腦。在 CubeProgrammer 中,選擇 USB 連接埠,點擊刷新按鈕,軟體會檢測到 USB 連接埠。點擊「連接」以連接飛控。選擇下載的韌體檔案(確保是來自 ArduinoPilot 網站的「BL.hex」檔案),然後點擊下載開始刷寫。刷寫前,執行完整晶片擦除。

使用 Mission Planner 線上刷寫 ArduPilot 韌體

這種方法僅適用於已經運行 ArduPilot 韌體的飛控板。在 Mission Planner 中,點擊左上角的「設定」,然後選擇「安裝韌體」。選擇 Quad X 圖示作為 Copter 韌體,選擇 4.6.2 版本,並在彈出視窗中確認。Mission Planner 會自動下載韌體。無需按住 Boot 按鈕,只需通過 USB 線將飛控連接到電腦,地面站會自動檢測到它。擦除晶片並刷寫新版本。完成後,點擊「資料」返回主螢幕。在右上角選擇正確的 COM 連接埠,然後點擊「連接」以連接飛控到地面站。

刷寫 PX4 韌體

PX4 韌體必須從官方 PX4 Github 下載或自行編譯。首先,使用 STM32CubeProgrammer 刷寫 PX4 引導程式。按住 Boot 按鈕進入 DFU 模式,然後通過 USB 線將飛控連接到電腦,並打開 STM32CubeProgrammer 進行連接。刷寫 PX4 引導程式 1.14 版本。刷寫前,執行完整晶片擦除。完成後,斷開飛控與 STM32CubeProgrammer 的連接,並拔掉 USB 線。打開 QGroundControl,點擊左上角的 Q 圖示,然後選擇「車輛配置」和「韌體」。停留在該頁面,不要按 Boot 按鈕。連接 USB 線到飛控,在彈出視窗中,點擊「進階設定」並選擇「自訂韌體檔案」。選擇本地 PX4 韌體檔案,例如 1.14.3 版本的「.px4」檔案,然後確認。刷寫過程將自動開始。確保飛控上的引導程式是 PX4 引導程式,否則 QGroundControl 無法識別,刷寫無法繼續。

刷寫 EmuFlight 韌體

打開 EmuFlight Configurator,從左側邊欄選擇「韌體刷寫器」。要刷寫 EmuFlight 8.0 或更高版本,需要使用 Configurator 8.0 或更高版本。從列表中選擇正確的飛控型號,然後選擇該型號可用的韌體。選擇韌體後,點擊右下角的「線上載入韌體」。韌體載入到 Configurator 後,左側的「刷寫韌體」按鈕將亮起。選擇韌體後,按住 Boot 按鈕並通過 USB 線連接飛控。EmuFlight Configurator 預設使用完整晶片擦除。

刷寫 Betaflight 韌體

使用 Betaflight Configurator 線上刷寫韌體的過程與 EmuFlight Configurator 相同。按住飛控上的 Boot 按鈕,然後連接 USB 線。當 Configurator 檢測到飛控處於 DFU 模式時,點擊右下角的「載入本地韌體」。在彈出視窗中,選擇要安裝的本地韌體檔案。韌體載入到 Configurator 並且刷寫按鈕亮起後,即可開始刷寫。Betaflight Configurator 也預設啟用完整晶片擦除。等待進度條完成並變為綠色,然後重新插拔 USB 線到飛控。COM 連接埠和韌體資訊將顯示在右上角。

Summarize any YouTube video in seconds

Get summaries like this one for any video, in your language, with the free Summ app.

Download on the Apple Store
Get it on Google Play

Transcript

YouTube Transcript Generator

0:00 This video will show you how to flash the four major open source flight controller firmwares, such as ArduPilot, PX4, Enav, and Betaflight onto the Meco Air 743 version to AIO. Before flashing, make sure to download the required tools. Open your browser and go to mecoair.com. To access the Meco Air Technology Documentation Center, in the flight controller section, Select the installing firmware on MECO R7 for 3. Click the link to download the tools directly from there. In the DFU driver installation software ZADC, the tools needed for flashing include the official STM32ToolQ programmer, the USB driver installer ZADC,

0:50 the Arduino Pilot Ground Station Mission Planner, the PH for Ground Station Q Ground Control, the ENOUGH configurator, in the BitaFlight configurator. Hold the boot button on the flight controller and connect it to the computer using a USB cable. Open Device Manager and Windows will recognize the flight controller in DFU mode as an unknown device. Now use Zadig to install the driver. Run Zadig as administrator. Click options and select List all devices. Find the item called DFU in FS mode. Click Install Driver and wait for the installation to finish. Once the driver is installed, Windows will

1:39 recognize the flight controller in DFU mode when it is connected via USB. In the 7.4.3 version trial user manual, under the firmware section, you can find the official download link for the Arduino Pilot firmware. Click the link and choose the copter firmware. Scroll down to the stable release for .6.2 and find the MeCore 7 for 3 version 2. Download the file ending with app or hex. If you plan to flash using cube programmer, download the file name with bl.hex. This file includes the bootloader. If the file name includes bl, It means the firmware

2:28 contains the bootloader and the file extension is hex. Files with the abj extension can only be flashed using Mission Planner if the flight controller already has a bootloader installed. Here is how to use STM32Cube Programmer to flash the ArduinoPilot firmware. This method works no matter what firmware is currently on the flight controller. Open Device Manager and then open STM32Cube Programmer. Hold the boot button, then connect the flight controller to the computer with the USB cable. Wait for Windows to detect it in DFU mode. In Cube Programmer, select the USB port. Click the refresh button next to the port field, and the software will detect USB

3:15 one. Then click connect to link the flight controller. After that, you can select the firmware file from your computer to flash. Click the plus button and choose open file. In the dialog window, select the firmware file you downloaded. Make sure the file is the one with BL.hex from the ArduinoPilot website. Then you can flash it directly to the flight controller using cube programmer. After selecting the ArduinoPilot for .6.2 firmware, perform a full chip erase. Click the eraser icon in the bottom left and confirm in the pop-up window. Once the erase is complete, click download to start flashing. The STM32 bootloader is stored and wrong and

4:03 cannot be erased or overwritten. This means there is no risk of breaking the board. So you can safely flash the firmware. Q-Programmer writes the file directly to the MCS onboard flash without checking if the firmware matches the flight controller model. So make sure the firmware matches your flight controller. Do not flash 7.4.3 version 1 firmware onto version 2 board. Wait for the progress bar at the bottom to reach on 100%. And the log to show that the file download is complete and green. Click disconnect in the top right corner. Then power cycle the flight controller by unplugging and plugging back the USB cable. The flight controller's LEDs will light up.

4:50 For boards running Arduino Pilot for the first time, You need to power cycle twice by end plugging and plugging the USB cable to times. Otherwise, Mission Planner will not detect the COM port. Here is how to use Mission Planner for online flashing. This method only works if the board is already running Arduino Pile. In Mission Planner, click Setup in the top left and choose Install Firmware. Select the Quad X icon for the copter firmware. Choose version for .6.2. and confirm in the pop-up window. Mission Planner will automatically download the firmware. Then confirm in the pop-up window. You don't need to press the boot button. Just connect the flight controller to the

5:35 computer with a USB cable. And the ground control station will detect it automatically. Erase the chip and flash the new version. This method only works for upgrading or reflashing a flight controller. That is already running our DoPilot firmware. After about 30 seconds, the ground control station will show that the flashing is complete. Then the green progress bar will be full. Click data to return to the main screen. Select the correct COM port in the top right corner and click connect to link the flight controller to the ground control station. In the messages pane on the left, you will see that the firmware is now version 4.6.2.

6:21 PX4 firmware must be downloaded from the official PX4 Github or compiled by yourself. Some older firmware versions can be downloaded from Miko Air's Github. To flash PX4 firmware, first use STM32Cube programmer to flash the PX4 bootloader. Hold the boot button to enter DFU mode. Then connect the flight controller to the computer with the USB cable. and open STM32Cube Programmer to connect. Flash the PH4 bootloader version 1.14. Before flashing, perform a full chip erase. After flashing, disconnect the flight controller from STM32Cube Programmer and

7:11 unplug the USB cable. Open Q-Ground Control. Click the Q icon in the top left. Then choose vehicle configuration and firmware. Stay on this page and do not press the boot button. Connect the USB cable to the flight controller. In the pop-up window, click Advanced Settings and choose Custom Firmware File. Select the local PX for firmware file, such as version 1.14.3 with the PX for extension and confirm. The flashing process will start automatically. when flashing firmware. This way, make sure the bootloader on the flight controller is the PX for bootloader. Otherwise, QGroundControl will not recognize it and flashing cannot continue.

8:00 If the firmware file does not match the flight controller model, QGroundControl will show an error and stop the flashing process. Firmware flashed through QGroundControl usually has the PX for the file extension. This includes firmware downloaded from the official PX for GitHub and self-compiled firmware. After a short wait, the progress bar will finish and the screen will show upgrade complete. The flight controller will reconnect and open the vehicle configuration page. This means the PX for firmware is successfully installed. Open a now configurator and select firmware flasher from the left sidebar. To flash enough firmware version 8.0

8:47 higher, you need to use Configurator version 8.0 or above. Select the correct flight controller model from the list. Then choose the firmware available for that model below. After selecting the firmware, click Load Firmware Online at the bottom right. Once the firmware loads into the Configurator, the Flash Firmware button on the left will light up. Some flight controllers with onboard compasses will show an external magnetometer version of the firmware when you select the flight controller model. Choosing the external magnetometer version will disable the onboard compass. Firmware that uses the onboard compass cannot work with an external compass. When flashing firmware, choose

9:34 the flight controller firmware that matches your drone setup. Whether it uses the onboard compass or an external compass, After choosing the firmware, hold the boot button and connect the flight controller with the USB cable. The port filled in the now configurator will show DFU. Click Flash firmware. Now configurator uses full chip erase by default. After about 30 seconds, the progress bar will complete and the port will switch from DFU to account port. Now return to the welcome page in the left sidebar. and connect the flight controller. Inside the ANOV configurator, you can see the current firmware version 8.0.1 in the top left

10:19 corner. The online firmware flashing for ANOV is now complete. The process for flashing firmware online with Betaflight configurator is the same as with ANOV configurator. Some Betaflight firmware must be downloaded from our official GitHub. Press and hold the boot button on the flight controller and connect the USB cable. When the configurator detects the flight controller is in DFU mode at the top, click Load Firmware Local in the lower right corner. In the pop-up window, select the local firmware file to install. Once the firmware loads into the configurator and the flash button lights up, you can start flashing. The beta flight configurator

11:08 also enables full chip erase by default. Wait about 30 seconds until the progress bar finishes and turns green. Then plug and re-plug the USB cable to the flight controller. The COM port and firmware info will then appear in the top right corner. Click welcome on the left menu to return to the main page. Then click connect to link the flight controller. The firmware information will appear in the top left corner. The local firmware flashing with Betaflight Configurator is now complete. That's all. We have introduced the download and flashing methods for the four major open source flight control firmware platforms. We also cover common issues during flashing and their

11:55 solutions, along with how to use and download the necessary tools. That concludes the content for today. Thank you for watching.

Share

YouTube Video Summaries