Hello!
There is a misconfiguration somewhere in build, because running latest ESP32 firmware on M5CORE2 device, I get this error:
File "ili9XXX.py", line 468, in ili9XXX
AttributeError: 'module' object has no attribute 'esp_clk_cpu_freq'
Firmware build info:
‘lv_micropython’ commit: 10ed6da4 (master branch)
Port: ESP32
Board: M5CORE2
ESP version: 4.2 (tag: v4.2, commit: c40f2590)
Terminal messages from M5Core2 device:
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:4
load:0x3fff0034,len:5608
load:0x40078000,len:13156
load:0x40080400,len:4356
entry 0x400806b0
Initialising M5Core2 power management
Vbus limit off
Speaker amplifier off
RTC battery charging enabled (3v, 200uA)
ESP32 power voltage set to 3.35v
LCD backlight voltage set to 2.80v
LCD logic and sdcard voltage set to 3.3v
LED on
Charge current set to 100 mA
Battery voltage now: 4.1228v
Power key set, 4 seconds for hard shutdown
Enabled all ADC channels
USB / battery powered, 5V bus on
LCD and touch reset
Traceback (most recent call last):
File "boot.py", line 12, in <module>
File "ili9XXX.py", line 72, in <module>
File "ili9XXX.py", line 468, in ili9XXX
AttributeError: 'module' object has no attribute 'esp_clk_cpu_freq'
Traceback (most recent call last):
File "main.py", line 1, in <module>
NameError: name 'lv' isn't defined
MicroPython v1.15-825-gdb540aded-dirty on 2021-07-19; M5Stack Core2 with ESP32
ili9XXX.py line 468:
cycles_in_ms = esp.esp_clk_cpu_freq() // 1000
This line is in source code for a long time, so the root cause of the issue must be somewhere in build scripts, because ~20 days ago (~2021-07-01) the firmware was working on the device, and LVGL was successfully initiated.
Thank you for your help!