8000 esp32-c3 1.17 and 1.18 compile error · Issue #8921 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

esp32-c3 1.17 and 1.18 compile error #8921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
puppet13th opened this issue Jul 18, 2022 · 3 comments
Closed

esp32-c3 1.17 and 1.18 compile error #8921

puppet13th opened this issue Jul 18, 2022 · 3 comments

Comments

@puppet13th
Copy link
puppet13th commented Jul 18, 2022

i'm trying to compile firmware(1.17 and 1.18) for esp32-c3 port with these setup:

  • Windows 10 with WSL(ubuntu)
  • firmware tar.gz downloaded from github release(1.17/1.18/1.19.1)
  • downloaded esp-idf version 4.2.3/4.3.3/4.4.1

command line used when compiling firmware 1.19.1 + esp-idf 4.3.3:

  • source ~/idf/esp-idf-v4.3.3/export.sh
  • make -C mpy-cross
  • make -C ports/esp32 BOARD=GENERIC_C3

ai-thinker esp32-c3s + firmware 1.19.1 + esp-idf 4.3.3:

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0xf18
load:0x403ce000,len:0x6e4
load:0x403d0000,len:0x292c
entry 0x403ce000
MicroPython v1.19.1 on 2022-07-17; ESP32C3 module with ESP32C3
Type "help()" for more information.
MicroPython v1.19.1 on 2022-07-17; ESP32C3 module with ESP32C3

Type "help()" for more information.
>>> import platform
>>> platform.platform()
'MicroPython-1.19.1--IDFv4.3.3-dirty-with-newlib3.3.0'

using same setup i tried to compile firmware 1.17 and 1.18 and encounter these error:

[1309/1338] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/__/machine_pin.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/__/machine_pin.c.obj
/home/puppet13th/.espressif/tools/riscv32-esp-elf/esp-2021r2
8000
-patch3-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc -DFFCONF_H=\"/home/puppet13th/micropython-1.17/lib/oofatfs/ffconf.h\" -DLFS1_NO_ASSERT -DLFS1_NO_DEBUG -DLFS1_NO_ERROR -DLFS1_NO_MALLOC -DLFS1_NO_WARN -DLFS2_NO_ASSERT -DLFS2_NO_DEBUG -DLFS2_NO_ERROR -DLFS2_NO_MALLOC -DLFS2_NO_WARN -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DMICROPY_ESP_IDF_4=1 -DMICROPY_MODULE_FROZEN_MPY="(1)" -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool -DMICROPY_VFS_FAT=1 -DMICROPY_VFS_LFS2=1 -D__DBINTERFACE_PRIVATE=1 -Dvirt_fd_t="void*" -Iconfig -I/home/puppet13th/micropython-1.17 -I/home/puppet13th/micropython-1.17/lib/berkeley-db-1.xx/PORT/include -I../ -I../boards/GENERIC_C3 -I. -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/newlib/platform_include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/freertos/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/freertos/include/esp_additions/freertos -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/freertos/port/riscv/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/freertos/include/esp_additions -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_hw_support/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_hw_support/include/soc -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_hw_support/include/soc/esp32c3 -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_hw_support/port/esp32c3/. -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_hw_support/port/esp32c3/private_include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/heap/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/log/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/lwip/include/apps -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/lwip/include/apps/sntp -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/lwip/lwip/src/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/lwip/port/esp32/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/lwip/port/esp32/include/arch -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/. -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/hal/esp32c3/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/hal/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/hal/platform_port/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_rom/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_rom/include/esp32c3 -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_rom/esp32c3 -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_common/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_system/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_system/port/soc -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_system/port/include/riscv -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_system/port/public_compat -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/riscv/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/driver/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/driver/esp32c3/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_pm/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_ringbuf/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/efuse/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/efuse/esp32c3/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/vfs/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_wifi/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_event/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_netif/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_eth/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/tcpip_adapter/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_phy/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_phy/esp32c3/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_ipc/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/app_trace/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/esp_timer/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/app_update/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/spi_flash/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bootloader_support/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/common/osi/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/include/esp32c3/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/common/api/include/api -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/common/btc/profile/esp/blufi/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/common/btc/profile/esp/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/porting/nimble/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/port/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/ans/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/bas/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/dis/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/gap/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/gatt/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/ias/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/ipss/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/lls/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/services/tps/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/util/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/store/ram/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/nimble/host/store/config/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/nimble/porting/npl/freertos/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/bt/host/nimble/esp-hci/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/nvs_flash/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/mbedtls/port/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/mbedtls/mbedtls/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/mbedtls/esp_crt_bundle/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/mdns/include -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/console -I/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/sdmmc/include -march=rv32imc -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Wno-error=format= -nostartfiles -Wno-format -Os -freorder-blocks -fmacro-prefix-map=/home/puppet13th/micropython-1.17/ports/esp32=. -fmacro-prefix-map=/mnt/d/mpy/IDF/esp-idf-v4.4.1=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4.1-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -Wno-clobbered -Wno-deprecated-declarations -Wno-missing-field-initializers -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/__/machine_pin.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/__/machine_pin.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/__/machine_pin.c.obj -c ../machine_pin.c
In file included from /mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/include/soc/io_mux_reg.h:17,
                 from /mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/include/soc/gpio_periph.h:17,
                 from /mnt/d/mpy/IDF/esp-idf-v4.4.1/components/driver/include/driver/gpio.h:18,
                 from ../machine_pin.c:32:
../machine_pin.c: In function 'machine_pin_obj_init_helper':
../machine_pin.c:264:29: error: 'USB_DEVICE_CONF0_REG' undeclared (first use in this function); did you mean 'UART_SWFC_CONF0_REG'?
         CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
                             ^~~~~~~~~~~~~~~~~~~~
/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/include/soc/soc.h:81:34: note: in definition of macro 'ETS_UNCACHED_ADDR'
 #define ETS_UNCACHED_ADDR(addr) (addr)
                                  ^~~~
/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/include/soc/soc.h:162:13: note: in expansion of macro 'WRITE_PERI_REG'
             WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask))));                                                     \
             ^~~~~~~~~~~~~~
../machine_pin.c:264:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
         CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
         ^~~~~~~~~~~~~~~~~~~
../machine_pin.c:264:29: note: each undeclared identifier is reported only once for each function it appears in
         CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
                             ^~~~~~~~~~~~~~~~~~~~
/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/include/soc/soc.h:81:34: note: in definition of macro 'ETS_UNCACHED_ADDR'
 #define ETS_UNCACHED_ADDR(addr) (addr)
                                  ^~~~
/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/include/soc/soc.h:162:13: note: in expansion of macro 'WRITE_PERI_REG'
             WRITE_PERI_REG((reg), (READ_PERI_REG(reg)&(~(mask))));                                                     \
             ^~~~~~~~~~~~~~
../machine_pin.c:264:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
         CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
         ^~~~~~~~~~~~~~~~~~~
../machine_pin.c:264:51: error: 'USB_DEVICE_USB_PAD_ENABLE' undeclared (first use in this function); did you mean 'USB_SERIAL_JTAG_USB_PAD_ENABLE'?
         CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/d/mpy/IDF/esp-idf-v4.4.1/components/soc/esp32c3/include/soc/soc.h:157:76: note: in definition of macro 'WRITE_PERI_REG'
             (*((volatile uint32_t *)ETS_UNCACHED_ADDR(addr))) = (uint32_t)(val);                                       \
                                                                            ^~~
../machine_pin.c:264:9: note: in expansion of macro 'CLEAR_PERI_REG_MASK'
         CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
         ^~~~~~~~~~~~~~~~~~~
[1313/1338] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/__/modnetwork.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
make: *** [Makefile:34: all] Error 2

the compilation finished with these lines commented out on ports/esp32/machine_pin.c :

    #if CONFIG_IDF_TARGET_ESP32C3
    if (self->id == 18 || self->id == 19) {
        CLEAR_PERI_REG_MASK(USB_DEVICE_CONF0_REG, USB_DEVICE_USB_PAD_ENABLE);
    }
    #endif

after i flashed the firmware,it caused bootloop.

ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x403881e2
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0xf18
load:0x403ce000,len:0x6e4
load:0x403d0000,len:0x292c
entry 0x403ce000
Guru Meditation Error: Core  0 panic'ed (Store access fault). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x42007502  RA      : 0x420074d2  SP      : 0x3fcc45d0  GP      : 0x3fc93f20  
TP      : 0x3fc97bb0  T0      : 0x00000000  T1      : 0x4038cd0a  T2      : 0x00000000  
S0/FP   : 0x3fc9db48  S1      : 0x00000000  A0      : 0x00000000  A1      : 0x00000000  
A2      : 0x00000009  A3      : 0xfffffdff  A4      : 0x3fcc4ca8  A5      : 0x00000000  
A6      : 0x00000000  A7      : 0x3fcc0704  S2      : 0x3fcc45fc  S3      : 0x40381a90  
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 0xa5a5a5a5 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4200a500
3fcc45f0: 0x3fcc0b44 0x00001000 0x3fc99a3c 0x3fcc4ca8 0x00000000 0x00000000 0x00000000 0x4200a378
3fcc4610: 0x00000000 0x00000000 0x00000000 0x3fcc4610 0x00000000 0x00000000 0x00000000 0x00000000
3fcc4630: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
3fcc4650: 0x00000000 0x00000000 0x00000000 0x4038ece0 0x00000000 0x00000000 0x00000000 0x00000000
3fcc4670: 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x27146414 0x000001ff 0x01010107 0x00000001
3fcc4690: 0x4b000000 0xcb000000 0x3717f7d1 0xb717f7d1 0x3f317180 0xbf317180 0x3f000000 0xbf000000
3fcc46b0: 0x00000000 0x80000000 0x00000000 0x35d1cfdc 0x00000000 0x3f15c000 0x3f800000 0x3fc00000
3fcc46d0: 0x7149f2ca 0x3f317218 0x3fc90fdb 0xbfc90fdb 0x40000000 0x3fc00000 0xbf800000 0x3c8569d7
3fcc46f0: 0x3d4bda59 0x3d886b35 0x3dba2e6e 0x3e124925 0x3eaaaaab 0xbd15a221 0x3d6ef16b 0x3d9d8795
3fcc4710: 0x3de38e38 0x3e4ccccd 0x41000000 0x3f8375d4 0x3e000000 0x3e0375d4 0xb7c756b1 0x3bbd1489
3fcc4730: 0x3ce9528f 0x3ea66beb 0xb684e21a 0x390aee49 0x3ba68116 0x3d852a63 0x3ecbbbce 0xbb0df9c0
3fcc4750: 0x3d1151b3 0x3de31cc2 0x3ea2fe54 0x3ebe9208 0x3ed46805 0x3b1acdc6 0x3c445aa3 0x3c5f6e13
3fcc4770: 0x3e013307 0x3d931ae7 0x3f0a5785 0x3dd9f331 0x3f58560b 0xbf58560b 0xc11d077e 0x42a2932b
3fcc4790: 0x43389ae7 0x4322658c 0x42798057 0x4128f022 0x3f31a0b7 0x3c21a093 0xbd777f97 0x40d23f7c
3fcc47b0: 0x42d9451f 0x43d6810b 0x442158c9 0x43d9486f 0x4309a863 0x419d35ce 0xc3f1c275 0x4480230b
3fcc47d0: 0x441f6441 0x4320a2ea 0x418e104b 0x3f4c9dd4 0x3c21a092 0xc1b38712 0x43ed43a7 0x451f90ce
3fcc47f0: 0x4547fdbb 0x44c01759 0x43a2e571 0x41f2b459 0x3f100000 0x3e1ea7d4 0xbf000000 0xb717f7d1
3fcc4810: 0x3717f7d1 0x0da24260 0x3f317180 0x3fb8aa3b 0xb457edbb 0x36867e54 0x38a670cd 0x3ad00d01
3fcc4830: 0x3d088889 0x40400000 0x40c00000 0xbe800000 0xc0000000 0x4c000000 0x3f2aaaab 0x3e178897
3fcc4850: 0x3e1cd04f 0x3e3a3325 0x3e638e29 0x3e924925 0x3ecccccd 0xf149f2ca 0x8da24260 0x33000000
3fcc4870: 0x42b2d4fc 0x42b17180 0xc2cff1b5 0xff800000 0x40490fdb 0x3811ef08 0x3a4f7f04 0x3d241146
3fcc4890: 0x3e4e0aa8 0x3ea6b090 0x3e2aaaab 0x3d9dc62e 0x3f303361 0x4001572d 0x4019d139 0x33a22168
3fcc48b0: 0x3fc90fda 0x40490fda 0xb33bbd2e 0x333bbd2e 0x3f490fdb 0xc0490fdb 0x4016cbe4 0xc016cbe4
3fcc48d0: 0xbf490fdb 0x33bbbd2e 0x3331bb4c 0x35ddea0e 0x388ab355 0x3b360b61 0x0d800000 0xcc000000
3fcc48f0: 0x355427db 0x3e9a2080 0x3fb8aa00 0x36eca570 0x4b800000 0x3e53f142 0x3e6c3255 0x3e8ba305
3fcc4910: 0x3edb6db7 0x3f19999a 0x3f763800 0x3f76384f 0x369dc3a0 0x3338aa3c 0x3f317200 0x35bfbe8c
3fcc4930: 0x3fc90f80 0x37354443 0x37354400 0x2e85a308 0x3f22f984 0x2e85a300 0x248d3132 0x43800000
3fcc4950: 0x7cf0bdc2 0x40800000 0x4b000000 0x3eec5b0c 0x3fbb16c3 0x3805ff67 0x3af135b4 0x3cda40e4
3fcc4970: 0x3e15dce6 0x3ea6cc7a 0x3e5c245a 0x3d9e233f 0x36f5d7bd 0x3a4beed6 0x3c98bf54 0x3e300f6e
3fcc4990: 0x3f38d0c5 0x3fb22d3b 0xbad5c4e8 0x3a5b3dd2 0x3a1c065c 0x3a500cfd 0x3daaaaab 0x3ed67f1d
3fcc49b0: 0x37d383a2 0x39679767 0x3a9c54a1 0x3bf2027e 0x3d89f001 0x383c2c75 0x38e28445 0x3a05b634

ELF file SHA256: 8277442616582117

Rebooting...

please advice.

@dpgeorge
Copy link
Member

i'm trying to compile firmware(1.17 and 1.18) for esp32-c3 port

Why do you need to compile older versions?

You may have more luck getting it working using an older IDF, like 4.3.2 or 4.4.

@puppet13th
Copy link
Author
puppet13th commented Jul 18, 2022

look like esp32-c3 ports ble does not play nice with uasyncio.please check forum thread

#8628 have issue with ble too.

i have tried to run ble test code(uploaded at forum) with 1.17 firmware too,and it runs flawlessly. but esp32-c3 1.17 firmware does not have enough ram to run my full code.

hopefully u can understand the problem that i described.

i will try to compile with IDF 4.3.2 then.

fyi : my full code/ble test code runs without issues on esp32 port

@puppet13th
Copy link
Author
puppet13th commented Jul 18, 2022

i have managed to compiled 1.17/1.18 firmware using IDF 4.3.2 without modify 'ports/esp32/machine_pin.c' and the firmware boot normally.it's time to test which firmware is more suitable for my code. @dpgeorge thank you very much for the pointer.

addon:
fw 1.17 compiled using idf 4.3.2 have much more free ram

MicroPython v1.17 on 2022-07-18; ESP32C3 module with ESP32C3
Type "help()" for more information.
>>> gc.mem_free()
104816

tannewt pushed a commit to tannewt/circuitpython that referenced this issue Feb 15, 2024
Restore setting __file__ in parse_compile_execute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
0