Skip to content

Feature Request: RISC-V (riscv64) support for M5Stack Arduino Libraries #343

@Carloszar

Description

@Carloszar

Feature Request: RISC-V (riscv64) support for M5Stack Arduino Libraries

Summary

Request to add RISC-V (linux/riscv64) support for M5Stack Arduino Libraries and associated builtin tools, to enable compiling and uploading M5Stack firmware from RISC-V based host machines.

Hardware

  • Host machine: Orange Pi RV2 (CPU: Ky X1 RISC-V, 8 cores)
  • OS: Ubuntu 24.04 Noble (linux/riscv64)
  • Target device: M5Stack Tab5 (ESP32-P4)

What works

  • ✅ Arduino CLI compiles successfully from source on RISC-V (Go 1.22.2)
  • ✅ M5Stack and Arduino package indexes download correctly (arduino-cli core update-index)
  • ✅ arduino-cli configuration works as expected
  • ✅ M5Stack Tab5 programs and runs correctly when compiled from a Windows/x64 host

What fails

When running arduino-cli core install m5stack:esp32@3.2.5 on a RISC-V host, the following errors occur:

Error: downloading builtin:ctags@5.8-arduino11 - no versions available for the current OS
Error: downloading builtin:dfu-discovery@0.1.2 - no versions available for the current OS
Error: downloading builtin:mdns-discovery@1.0.12 - no versions available for the current OS
Error: downloading builtin:serial-discovery@1.4.3 - no versions available for the current OS
Error: downloading builtin:serial-monitor@0.15.0 - no versions available for the current OS
Error: downloading m5stack:esp32-arduino-libs@idf-release_v5.4-858a988d-v1 - no versions available for the current OS

The last error message explicitly suggested contacting M5Stack support, which led to this issue.

Context and motivation

RISC-V is a rapidly growing architecture in the maker and IoT community. Single-board computers like the Orange Pi RV2 are increasingly being used as IoT hubs and development platforms. Being able to compile and upload M5Stack firmware directly from a RISC-V host would be extremely valuable for projects where the RISC-V board acts as the central hub managing M5Stack devices.

Request

Could you please consider adding RISC-V (linux/riscv64) binaries for:

  1. m5stack:esp32-arduino-libs
  2. The associated builtin tools (ctags, dfu-discovery, mdns-discovery, serial-discovery, serial-monitor)

Additional notes

  • I am happy to test beta builds or provide additional information if needed.
  • Note that the builtin tools are an Arduino project dependency - it may also be worth raising this with the Arduino team at https://github.com/arduino/arduino-cli/issues

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions