Hello,
I'm working on Ubuntu 21.04.
I have build with success the last release (V1.18) of Micropython with the following commands :
Code: Select all
git clone https://github.com/micropython/micropython.git
cd micropython
git checkout v1.18
docker run --rm -v $PWD:/project -w /project -it espressif/idf:release-v4.3
# Now, we are working in Docker
make -C mpy-cross clean
make -C mpy-cross
make BOARD=GENERIC -C ports/esp32 clean
make BOARD=GENERIC -C ports/esp32
#Hit Ctrl-D to leave Docker
esptool.py --chip esp32c3 erase_flash
esptool.py -b 460800 --before default_reset --after hard_reset --chip esp32c3 write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x0 ports/esp32/build-GENERIC_C3/firmware.bin
After flashing, my "ESP32-C3 LilyGo-T-OI-PLUS" board runs fine.
But if I am using
espressif/idf:release-v4.4, alfter flashing myboard fails with this error message :
Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x403806fc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0xe3c
load:0x403ce000,len:0x6f4
load:0x403d0000,len:0x28ec
entry 0x403ce000
Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled.
Core 0 register dump:
MEPC : 0x42077ae2 RA : 0x42077ab2 SP : 0x3fcc45d0 GP : 0x3fc93400
TP : 0x3fc9b694 T0 : 0x00000000 T1 : 0x4038c694 T2 : 0x00000000
S0/FP : 0x3fc9c060 S1 : 0x00000000 A0 : 0x00000000 A1 : 0x00000000
A2 : 0x00000009 A3 : 0xfffffdff A4 : 0x3fcc4ca8 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x3fcc0704 S2 : 0x3fcc45fc S3 : 0x4038183e
S4 : 0x00000000 S5 : 0x00000000 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x00000000 T4 : 0x00000000 T5 : 0x00000000 T6 : 0x00000000
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000008
MHARTID : 0x00000000
Stack memory:
3fcc45d0: 0xa5a5a5a5 0x00001000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x42005e52
3fcc45f0: 0x3fcc0b44 0x00001000 0x3fc9757c 0x3fcc4ca8 0x00000000 0x00000000 0x00000000 0x42005cc2
.....
How can I fix that with espressif/idf:release-v4.4 ?
Notice I change ports/esp32/modules/_boot.py like this :
https://gist.github.com/bazooka07/4eb77 ... eb899fe7fe