~/talk

Porting PicoRuby to Another Microcontroller: ESP32

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby, embedded-and-hardware]
links:none on file
slides:none on file

Ports PicoRuby to ESP32 (both ESP32-C3 RISC-V and Xtensa boards) using ESP-IDF, cross-compiles to produce ribmruby.a build, links it into an R2P2 project to output R2P2.esp32.bin produced, and implements machine HAL changes for stdio (fixing CSI terminal behavior by byte-wise output and fflush). Addresses watchdog hangs, a require initialization bug, and stack overflows (increasing FreeRTOS task stack). About 10 gems ported enable SPI, ADC, filesystem and audio and a demo shows LED matrix, joystick and sound working — overall successful with source on GitHub.

AI-written summary · about

  1. 0:00Introduction to PicoRuby
  2. 1:50Why PicoRuby is portable
  3. 2:34Introducing ESP32 microcontroller
  4. 4:00Porting procedure overview
  5. 4:47C compile link and archive basics
  6. 6:13Cross-compiling for ESP32
  7. 7:59Setting up ESP-IDF
  8. 9:45Building ribmruby.a
  9. 10:07Linking ribmruby.a
  10. 13:15Handling standard I/O
  11. 17:55Porting MRuby gems
  12. 20:57Troubleshooting porting issues
  13. 21:17Watchdog timer error
  14. 22:37Require function not working
  15. 23:17Stack overflow error
  16. 24:37CSI command not working
  17. 26:39Live demo of R2P2 on ESP32
  18. 29:23Summary and future contributions
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.