Seeed-標誌

Seeed esp32c6 PlatformIO 支持 XIAO

Seeed-esp32c6-平台IO-支援-XIAO-產品

產品資訊

規格:

  • 支援XIAO開發板
  • 相容於Arduino框架
  • 支援esp32c6、rp2040、nrf52840等多種XIAO型號

產品使用說明

小esp32c6:

  1. 在 PlatformIO 中建立一個新項目
  2. 將 platformio.ini 的內容替換為提供的配置
  3. 建置並編譯專案

曉rp2040:

  1. 使用 seeed_xiao_rp2040 的指定內容更新 platformio.ini
  2. 完成第一次建置和編譯
  3. 使用PlatformIO建立seeed_xiao_rp2040項目

曉nrf52840:

  1. 在 PlatformIO 中建立一個新項目
  2. 使用提供的配置修改 platformio.ini
  3. 建置並編譯專案
  4. 使用 PlatformIO 建立 seeed_xiao_nrf52840 項目

PlatformIO 如何支持 XIAO

  1. xiao_esp32c6
    PR 已提交,等待合併。您可以參考以下鏈接
  2. 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專案。
  3. xiao_nrf52840
    主線支援: platform-nordicnrf52,Nordic nRF52:PlatformIO的開發平台,下載platform-nordicnrfXNUMX的源碼_GitHub_幫酷

使用說明

建立新專案後,取代platformio.ini的內容 file 在您的專案資料夾中包含以下內容:

初始建置和編譯完成後,您可以使用 PlatformIO 建立 seeed_xiao_nrf52840 專案。

社區法
參考文章https://alwint3r.medium.com/working-with-seeed-xiao-ble-sense-and-platformio-ide-5c4da3ab42a3

步驟
  1. 首先,在 PlatformIO 中建立一個 Arduino Nano33 BLE 專案。建立後,導覽至 Nordicnrf52/boards 目錄(通常位於 C:\Users\「使用者名稱」\.platformio\platforms\nordicnrf52)並建立一個 file 名為 xiaoblesense.json(您可以參考連結文章中的內容)。
  2. 從以下連結下載適用於 Arduino IDE 的 Seeed Studio Arduino 嵌入核心分支:Seeed_XIAO_BLE_nRF52840_Sense261.tar.bz2。
  3. 解壓下載的 file 進入framework-arduino-mbed資料夾(通常位於C:\Users\「使用者名稱」\.platformio\packages\framework-arduino-mbed)。
  4. 在步驟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
  5.  編譯專案(請注意,您可能會遇到與長路徑封鎖頭檔相關的問題 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

參考

發表評論

您的電子郵件地址不會被公開。 必填欄位已標記 *