This is a M5StickC version of M5Stack-IDF with m5mruby.
-
Download and install esp-idf of v3.2 and
idf.py
. -
install CMake
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
## 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
- 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 withidf.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
-> selectCustom partition table CSV
- select
Custom partition CSV file
-> setpartitions.csv
- select