I have esp32-c3 board and I ran make -C ports/esp32 BOARD=GENERIC_C3
But it fails with following logs
In file included from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/soc/esp32c3/include/soc/dport_access.h:22,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/hal/esp32c3/include/hal/cpu_ll.h:11,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/hal/include/hal/cpu_hal.h:16,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/esp_hw_support/include/esp_cpu.h:14,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/esp_hw_support/include/soc/cpu.h:14,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/esp_hw_support/include/soc/spinlock.h:11,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/freertos/port/riscv/include/freertos/portmacro.h:38,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/freertos/include/freertos/portable.h:51,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/freertos/include/freertos/FreeRTOS.h:63,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/ports/esp32/mpconfigport.h:10,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/py/mpconfig.h:75,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/py/obj.h:31,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/lib/lv_bindings/driver/esp32/../include/common.h:4,
from /Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/lib/lv_bindings/driver/esp32/espidf.c:1:
/Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/lib/lv_bindings/driver/esp32/espidf.h: In function 'SPH0645_WORKAROUND':
/Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/lib/lv_bindings/driver/esp32/espidf.h:85:18: error: implicit declaration of function 'I2S_TIMING_REG'; did you mean 'I2S_RX_TIMING_REG'? [-Werror=implicit-function-declaration]
REG_SET_BIT( I2S_TIMING_REG(i2s_num), BIT(9));
^~~~~~~~~~~~~~
/Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/soc/esp32c3/include/soc/soc.h:109:36: note: in definition of macro 'REG_SET_BIT'
(*(volatile uint32_t*)(_r) |= (_b)); \
^~
/Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/lib/lv_bindings/driver/esp32/espidf.h:86:18: error: implicit declaration of function 'I2S_CONF_REG'; did you mean 'I2S_TX_CONF_REG'? [-Werror=implicit-function-declaration]
REG_SET_BIT( I2S_CONF_REG(i2s_num), I2S_RX_MSB_SHIFT);
^~~~~~~~~~~~
/Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/esp-idf/components/soc/esp32c3/include/soc/soc.h:109:36: note: in definition of macro 'REG_SET_BIT'
(*(volatile uint32_t*)(_r) |= (_b));
The command works fine on normal ESP32 board and I am able to generate the firmware file but flashing the file generated for normal esp32 board gives: This chip is ESP32-C3 not ESP32. Wrong --chip argument?
When using
idf.py set-target esp32c3
idf.py build
it fails with logs
/Users/dhruv.pandey/Personal/lvgl-micropython-idf-4.4.5/lv_micropython/ports/esp32/machine_dac.c:37:10: fatal error: driver/dac.h: No such file or directory
#include "driver/dac.h"