🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Atom JoyStickのATOM S3のファームをVisualStudioCodeのPlatformIOプラグインから書き込みたい

    日本語フォーラム
    2
    3
    23
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      stx28eeeee3
      last edited by

      初めまして。M5 Stackの初心者です。
      M5 Stack Stamp Flyの飛行プログラムを自作したくて、現在、簡単な飛行命令を行うファームをAtom JoyStickに書き込もうとしていますが、ファームの書き込みに失敗してしまいます。
      環境は以下のとおりです。
      OS:Ubuntu24.04.2 LTS amd64 (VMware Workstation 15 Player 15.5.7 build-17171714上の仮想OS)
      IDE: VisualStudioCode 1.100.2
      プラグイン:PlatformIO
      対象のM5 Stack: ATOM S3
      USBドライバ:ホストOS(Windows11)側にはUSBドライバのCP210x_VCP_Windowsのインストールに成功しましたが、ゲストOSのUbuntu側ではCP210x_VCP_Linuxのmakeに失敗し、推奨ドライバのインストールはできいません。
      ATOM S3をUSBケーブルで接続した際にはttyACM0が表示されます。
      以下のブログなどを参考に手順を再現してみましたが同じエラーでファームのアップロードに失敗します。
      https://zenn.dev/hidenori3/articles/7ec70f3633ad41
      https://developer.mamezou-tech.com/blogs/2025/04/08/remote-develop-on-platformio/
      http://www.neko.ne.jp/~freewing/hardware/esp32_s3_vspi_not_declared_error/

      どうかお力を貸して頂けないでしょうか。

      Platformio.iniの内容:

      ; PlatformIO Project Configuration File
      ;
      ;   Build options: build flags, source filter
      ;   Upload options: custom upload port, speed and extra flags
      ;   Library options: dependencies, extra library storages
      ;   Advanced options: extra scripting
      ;
      ; Please visit documentation for the other options and examples
      ; https://docs.platformio.org/page/projectconf.html
       
      ;[env]
      [env:esp32-s3-devkitc-1]
      platform = espressif32
      board = esp32-s3-devkitc-1
      framework = arduino
      ;framework = platformio
      monitor_speed = 115200
      ;monitor_speed = 9600
      ;monitor_speed = 460800
      ;monitor_speed = 921600
       
      lib_deps =
          fastled/FastLED
          tinyu-zhao/INA3221
          mathertel/OneButton @ ^2.5.0
       
      ;[env:esp32-s3-devkitc-1]
      ;build_type = release
      ;build_flags = -DCORE_DEBUG_LEVEL=0 -O0
      ;extra_scripts = post:generate_user_custom.py
      custom_firmware_version = 0.0.1.3
      custom_firmware_name = stampfly_firmware
      custom_firmware_suffix = .bin
      custom_firmware_dir = ./
      upload_speed = 1500000
      

      エラーメッセージ:

       
      Processing esp32-s3-devkitc-1 (platform: espressif32; board: esp32-s3-devkitc-1; framework: arduino)
      ---------------------------------------------------------------------------------------------------
      Verbose mode can be enabled via `-v, --verbose` option
      CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s3-devkitc-1.html
      PLATFORM: Espressif 32 (6.11.0) > Espressif ESP32-S3-DevKitC-1-N8 (8 MB QD, No PSRAM)
      HARDWARE: ESP32S3 240MHz, 320KB RAM, 8MB Flash
      DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
      PACKAGES: 
      - framework-arduinoespressif32 @ 3.20017.241212+sha.dcc1105b 
      - tool-esptoolpy @ 1.40501.0 (4.5.1) 
      - tool-mkfatfs @ 2.0.1 
      - tool-mklittlefs @ 1.203.210628 (2.3) 
      - tool-mkspiffs @ 2.230.0 (2.30) 
      - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
      - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
      LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
      LDF Modes: Finder ~ chain, Compatibility ~ soft
      Found 39 compatible libraries
      Scanning dependencies...
      Dependency Graph
      |-- FastLED @ 3.9.20
      |-- INA3221 @ 0.0.1
      |-- OneButton @ 2.6.1
      |-- bmi270
      |-- WiFi @ 2.0.0
      |-- vl53l3c
      |-- MdgwickAHRS
      Building in release mode
      Retrieving maximum program size .pio/build/esp32-s3-devkitc-1/firmware.elf
      Checking size .pio/build/esp32-s3-devkitc-1/firmware.elf
      Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
      RAM:   [==        ]  21.1% (used 69116 bytes from 327680 bytes)
      Flash: [==        ]  24.5% (used 819073 bytes from 3342336 bytes)
      Configuring upload protocol...
      AVAILABLE: cmsis-dap, esp-bridge, esp-builtin, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
      CURRENT: upload_protocol = esptool
      Looking for upload port...
      Auto-detected: /dev/ttyACM0
      Uploading .pio/build/esp32-s3-devkitc-1/firmware.bin
      esptool.py v4.5.1
      Serial port /dev/ttyACM0
      Connecting...
      Chip is ESP32-S3 (revision v0.2)
      Features: WiFi, BLE
      Crystal is 40MHz
      MAC: 48:ca:43:38:c7:40
      Uploading stub...
      Running stub...
      Stub running...
      Changing baud rate to 460800
      Changed.
      Configuring flash size...
      Flash will be erased from 0x00000000 to 0x00003fff...
      Flash will be erased from 0x00008000 to 0x00008fff...
      Flash will be erased from 0x0000e000 to 0x0000ffff...
      Flash will be erased from 0x00010000 to 0x000d8fff...
      Compressed 15104 bytes to 10430...
      Writing at 0x00000000... (100 %)
      Wrote 15104 bytes (10430 compressed) at 0x00000000 in 0.3 seconds (effective 447.6 kbit/s)...
       
      A fatal error occurred: Packet content transfer stopped (received 24 bytes)
      *** [upload] Error 2
      =================================== [FAILED] Took 15.05 seconds ===================================
       
      *  ターミナル プロセス "platformio 'run', '--target', 'upload'" が終了コード 1 で終了しました。 
      *  ターミナルはタスクで再利用されます、閉じるには任意のキーを押してください。```
      1 Reply Last reply Reply Quote 0
      • kurikoK
        kuriko
        last edited by

        @stx28eeeee3
        これは確かにストランジなエラーです。何が問題なのかわかりませんが、私が使用している AtomS3 テンプレートで試してみてください。
        https://www.mediafire.com/file/jt8jo58x6ebevsl/AtomS3-template.zip/file

        Good morning, and welcome to the Black Mesa Transit System.

        S 1 Reply Last reply Reply Quote 0
        • S
          stx28eeeee3 @kuriko
          last edited by

          @kuriko
          早速のご回答ありがとうございます。テンプレートダウンロードさせて頂きました。
          こちらのテンプレートと設定値を比較しながら再度ビルドとアップロードを試みます。

          1 Reply Last reply Reply Quote 0
          • First post
            Last post