> For the complete documentation index, see [llms.txt](https://taiphoon-com.gitbook.io/taiphoon.com-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://taiphoon-com.gitbook.io/taiphoon.com-docs/firmware/ardupilot/flash-autopilot.md). Agents can also search and read this documentation through its [MCP server](https://taiphoon-com.gitbook.io/taiphoon.com-docs/~gitbook/mcp).

# 韌體燒錄

Morakot 出廠已內建ArduPilot。需要更換或更新 ArduPilot 時，使用 Mission Planner 的韌體安裝功能。

## 開始前

* 確認飛控型號、硬體版本與要安裝的機型韌體。
* 從 [Mission Planner 下載頁面](https://firmware.ardupilot.org/Tools/MissionPlanner/)下載並安裝 Mission Planner。
* 將飛控以 USB 連接電腦。

{% hint style="warning" %}
燒錄前先卸下螺旋槳。燒錄期間保持 USB 連線與供電，等待程式完成。
{% endhint %}

{% stepper %}
{% step %}

### 開啟韌體安裝

開啟 Mission Planner，保持地面站未連線狀態，進入「初始配置」→「韌體安裝」（英文介面為 **SETUP** → **Install Firmware**）。

<figure><img src="https://401369577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmvFqg0h5Ob1pRXspm7Yi%2Fuploads%2FEzBlikI5pbGVuaL7Hdut%2Fmp-01-install-firmware.png?alt=media&amp;token=13007c5b-40b6-4277-bd74-6c3ce9393b88" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 選擇機型韌體

依機體選擇多旋翼、定翼機或其他對應韌體，核對安裝對象為 Morakot。

<figure><img src="https://401369577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmvFqg0h5Ob1pRXspm7Yi%2Fuploads%2F06mum7t2gxOEw24PrmLL%2Fmp-02-confirm-upload.png?alt=media&amp;token=b181439d-abab-47cd-916b-59d2951e1959" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 執行安裝

確認選擇後，按下 Yes 開始下載與安裝。出現 `Please unplug the board, and then press OK and plug back in.` 時，拔除 USB、按 **OK**，再重新插入 USB（Mission Planner 會在 30 秒內尋找飛控）。等待燒錄完成，再連接飛控，檢查目前的韌體與地面站狀態。

<figure><img src="https://401369577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmvFqg0h5Ob1pRXspm7Yi%2Fuploads%2FRg2fqZNMsLMc1FnI20Ab%2Fmp-03-downloading.png?alt=media&amp;token=8e1c69e0-19fe-45c7-a229-b17b2de853a5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://401369577-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmvFqg0h5Ob1pRXspm7Yi%2Fuploads%2FuUG0qS5mwkRqFI5e9eXo%2Fmp-04-unplug-board.png?alt=media&amp;token=13dd6dc1-22d4-4071-89b7-73106316c4b6" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## 使用 STM32CubeProgrammer 燒錄

透過 USB DFU 模式將韌體檔案寫入飛控的步驟，見 [使用 STM32CubeProgrammer 燒錄](https://taiphoon-com.gitbook.io/taiphoon.com-docs/support/knowledge-base/stm32cubeprogrammer.md)。

## 接續設定

前往 [首次設定](https://taiphoon-com.gitbook.io/taiphoon.com-docs/firmware/ardupilot/first-setup.md)，完成感測器校正、輸入輸出與故障保護設定。

需要指定版本或韌體檔案時，寄信至 <service@taiphoon.com.tw>，提供飛控型號與硬體版本。
