Skip to content

mruby development template for M5StickC based on ESP-IDF

Notifications You must be signed in to change notification settings

yamanekko/M5StickC-IDF-m5mruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

M5StickC-IDF: an ESP-IDF example for M5StickC with m5mruby

This is a M5StickC version of M5Stack-IDF with m5mruby.

Install

brew install cmake
  • Create template idf project
$ git clone https://github.com/yamanekko/M5StickC-IDF-m5mruby.git
$ cd M5StickC-IDF-m5mruby
$ git submodule update --init --recursive --recommend-shallow --depth 5

Build and Execute

## update config
$ idf.py menuconfig

## build
$ idf.py build

## transfer to flash
$ idf.py flash

## when you need to change port and baud:
$ idf.py -p /dev/tty.usbserial-9D527BF645A -b 115200 flash

## monitor
$ idf.py -p /dev/tty.usbserial-9D527BF645A -b 115200 monitor

Troubleshooting

  • If you use macOS, you may need to fix ulimit value:
$ ulimit -n 2048
  • When you got error: 'mbedtls_ssl_conf_psk' was not declared in this scope, fix config with idf.py menuconfig (espressif/arduino-esp32#2154)

  • If you got an error such as:

E (515) esp_image: Image length 1065616 doesn't fit in partition length 1048576
E (521) boot: Factory app partition is not bootable
E (526) boot: No bootable app partitions in the partition table

It's partitions issue. Fix config with idf.py menuconfig to use partitions.csv in this repo.

  • select Partition Table
    • select Partition Table -> select Custom partition table CSV
    • select Custom partition CSV file -> set partitions.csv

About

mruby development template for M5StickC based on ESP-IDF

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published