Seeed esp32c6 PlatformIO 支持 XIAO
產品資訊
規格:
- 支援XIAO開發板
- 相容於Arduino框架
- 支援esp32c6、rp2040、nrf52840等多種XIAO型號
產品使用說明
小esp32c6:
- 在 PlatformIO 中建立一個新項目
- 將 platformio.ini 的內容替換為提供的配置
- 建置並編譯專案
曉rp2040:
- 使用 seeed_xiao_rp2040 的指定內容更新 platformio.ini
- 完成第一次建置和編譯
- 使用PlatformIO建立seeed_xiao_rp2040項目
曉nrf52840:
- 在 PlatformIO 中建立一個新項目
- 使用提供的配置修改 platformio.ini
- 建置並編譯專案
- 使用 PlatformIO 建立 seeed_xiao_nrf52840 項目
PlatformIO 如何支持 XIAO
- xiao_esp32c6
PR 已提交,等待合併。您可以參考以下鏈接- 使用說明: 添加對 Seeed XIAO ESP32C6 的主機板支持,作者:LynnL4 · Pull Request #1380 · platformio/platform-espressif32 · GitHub
- 具體步驟: 建立任意專案後,取代platformio.ini的內容 file 在專案資料夾中包含以下內容:
[環境:seeed_xiao_esp32c6] - 平台 = https://github.com/mnowak32/platform-espressif32.git#boards/seeed_xiao_esp32c6
- 平台包s = 框架-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.2 框架-arduinoespressif32-libs @ https://github.com/espressif/arduinoesp32/releases/download/3.0.2/esp32arduinolibs3.0.2.zip
- 框架=arduino
- 板= seeed_xiao_esp32c6
- xiao_rp2040
PlatformIO的主分支不支援其他開發板。社群版本已經提交,使用方法如下:- 關聯: GitHub – maxgerhardt/platform-raspberry pi: Raspberry Pi:PlatformIO 的開發平台
- 使用說明:
在任何新專案中,更改 platformio.ini file 到以下:[env:seeed_xiao_rp2040] - platform = GitHub – maxgerhardt/platform-raspberry pi:Raspberry Pi:PlatformIO 的開發平台
- 板= seeed_xiao_rp2040
- 框架=Arduino
- 完成第一次建置和編譯後,您可以使用PlatformIO建立seeed_xiao_rp2040專案。
- xiao_nrf52840
主線支援: platform-nordicnrf52,Nordic nRF52:PlatformIO的開發平台,下載platform-nordicnrfXNUMX的源碼_GitHub_幫酷
使用說明
建立新專案後,取代platformio.ini的內容 file 在您的專案資料夾中包含以下內容:
- [env] 平台 = https://github.com/maxgerhardt/platform-nordicnrf52framework=Arduino
- [env:xiaoblesense_arduinocore_mbed] 板 = xiaoblesense
- [env:xiaoble_arduinocore_mbed] 板 = xiaoble
初始建置和編譯完成後,您可以使用 PlatformIO 建立 seeed_xiao_nrf52840 專案。
社區法
參考文章:https://alwint3r.medium.com/working-with-seeed-xiao-ble-sense-and-platformio-ide-5c4da3ab42a3
步驟
- 首先,在 PlatformIO 中建立一個 Arduino Nano33 BLE 專案。建立後,導覽至 Nordicnrf52/boards 目錄(通常位於 C:\Users\「使用者名稱」\.platformio\platforms\nordicnrf52)並建立一個 file 名為 xiaoblesense.json(您可以參考連結文章中的內容)。
- 從以下連結下載適用於 Arduino IDE 的 Seeed Studio Arduino 嵌入核心分支:Seeed_XIAO_BLE_nRF52840_Sense261.tar.bz2。
- 解壓下載的 file 進入framework-arduino-mbed資料夾(通常位於C:\Users\「使用者名稱」\.platformio\packages\framework-arduino-mbed)。
- 在步驟52建立的nordicnrf1目錄中,找到platform.py file。找到以下幾行:
如果進入(“nano33ble”,“nicla_sense_me”):- self.packages[“toolchain-gccarmnoneeabi”][“版本”] =“~1.80201.0”
- self.frameworks[“Arduino”][“package”] =“framework-arduino-embed”
- self.frameworks[“Arduino”][“腳本”] =“builder/frameworks/arduino/mbed-core/arduino-core-mbed.py”
- 將其修改為:: 如果板子在(“nano33ble”, “nicla_sense_me”, “xiaoblesense”): self.packages[“tool-adafruit-nrfutil”][“可選”] = False
- 編譯專案(請注意,您可能會遇到與長路徑封鎖頭檔相關的問題 file以免被發現;如果發生這種情況,請搜尋遺失的標頭 files 並將它們複製到指定的資料夾中)。
常問問題
Q:如何解決與長路徑阻止標頭相關的問題 files 在編譯過程中被發現?
A:如果您遇到此問題,請搜尋遺失的標頭 files 並將它們複製到錯誤訊息中指定的指定資料夾中。
Q:PlatformIO 可以與手冊中未提及的其他 XIAO 開發板一起使用嗎?
A:目前PlatformIO主分支不支援其他XIAO開發板。但是,社群版本可能適用於特定的主機板。請參閱相關社區資源以獲取更多資訊。
文件/資源
![]() |
Seeed esp32c6 PlatformIO 支持 XIAO [pdf] 指示 esp32c6、rp2040、nrf52840、esp32c6 PlatformIO 支持 XIAO、esp32c6、PlatformIO 支持 XIAO、支持 XIAO |