logo elektroda
logo elektroda
X
logo elektroda

Configuring OpenBeken on ESP32 with 4MB Default Using sdkconfig.defaults.esp32

insmod 9723 228
ADVERTISEMENT
  • #181 21631162
    insmod
    Level 28  
    >>21631157
    AmebaZ is fine, i tested it after Ameba1 failed.
  • ADVERTISEMENT
  • #182 21635279
    divadiow
    Level 36  
    consistently getting this with OTA on C3. OTA successful though

    Code: Text
    Log in, to see the code


    Reboot reason: 4 - ESP_RST_PANIC
  • ADVERTISEMENT
  • #184 21637891
    p.kaczmarek2
    Moderator Smart Home
    Any way to check at runtime which version we have? Then we could filter to show only matching.
    Helpful post? Buy me a coffee.
  • #185 21638169
    divadiow
    Level 36  
    ah, no change
    ESP32C3 OTA interface with file selection and Reboot button

    I guess the post fixes would need to be _2M.img/_4M.img but then how to catch both?

    Firmware file list for OpenESP32C3 with version numbers and 4M suffix shown in dropdown

    I don't see any evidence the 2 and 4mb builds identify themselves as such.
  • #186 21638176
    insmod
    Level 28  
    >>21638169
    SPI LED pull needs to be merged, it includes ESP version fix
  • #187 21638281
    p.kaczmarek2
    Moderator Smart Home
    Sure, merged, thank you! I need to dig up various WS LEDs I have...
    Helpful post? Buy me a coffee.
  • #188 21638387
    insmod
    Level 28  
    ESP32-C5 are already available on ali, and they are rather cheap.
    Quite unlike ESP32-C6, where they were about $10 for several months after release.
    $2.16 for 1pcs ESPC5-12-N4, ESP-12F form factor. I ordered 2.
    $2.84 for 2pcs ESPC5-32E-N4 (bug?)
    https://aliexpress.com/item/4000894446707.html

    I just hope it is a release revision (v1.0), not beta (v0.1), as its support was removed from IDF.

    ESP32-C61 is in the same store, as T5-E1
    https://aliexpress.com/item/1005009543271108.html
    Description indicates pre-release version.

    Did anyone experiment with OpenThread? Perhaps using it, support can be added to ESP32-H2 and BL702. It uses IPv6 after all.
  • #189 21638553
    divadiow
    Level 36  
    insmod wrote:
    it includes ESP version fix

    cool

    ESP32C3 device debug info with MAC address, uptime, and build version
  • #190 21638566
    p.kaczmarek2
    Moderator Smart Home
    How would BL702 support work? It's BLE/Zigbee.

    So far, I tested only BL808, it's dual core WiFi chip. SDK may be similar to BL602.
    Helpful post? Buy me a coffee.
  • #191 21638982
    insmod
    Level 28  
    >>21638566
    OpenThread is 802.15.4 protocol, same as zigbee. But, it supports TCP/IP.
  • #192 21639704
    p.kaczmarek2
    Moderator Smart Home
    I am testing OpenESP32 S3 on ESP32-S3-Relay-6CH. So far good, but I got reboot after saving pins.
    ESP32S3 pin configuration interface with relay roles assigned
    ESP_RST_PANIC
    Hm I can reproduce it by saving pins.
    
    Info:MAIN:Time 46, idle 0/s, free 212992, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 0/0 
    
    Info:MAIN:Time 47, idle 0/s, free 212992, MQTT 0(3), bWifi 1, secondsWithNoPing -1, socks 0/0 
    
    Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
    
    Core  0 register dump:
    PC      : 0x4003b6d2  PS      : 0x00060830  A0      : 0x82083acc  A1      : 0x3fcb3ec0  
    A2      : 0x3fcef358  A3      : 0x3fcbe5a8  A4      : 0x00000064  A5      : 0x00000017  
    A6      : 0x00000030  A7      : 0x3fcef264  A8      : 0x3fcab8dc  A9      : 0xfa0f830a  
    A10     : 0x00000002  A11     : 0x3fcbe5a8  A12     : 0x0001f000  A13     : 0x02000000  
    A14     : 0x6003427c  A15     : 0x0000cdcd  SAR     : 0x0000000a  EXCCAUSE: 0x0000001c  
    EXCVADDR: 0xfa0f830c  LBEG    : 0x40056f5c  LEND    : 0x40056f72  LCOUNT  : 0xffffffff  
    
    
    Backtrace: 0x4003b6cf:0x3fcb3ec0 0x42083ac9:0x3fcb3ee0 0x420a25c6:0x3fcb3f00 0x40387856:0x3fcb3f30 0x4038739f:0x3fcb3f70 0x403874b5:0x3fcb3f90
    
    
    
    
    ELF file SHA256: 87ea6781a
    
    Rebooting...
    ESP-ROM:esp32s3-20210327
    Build:Mar 27 2021
    rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
    Saved PC:0x40375ce1
    SPIWP:0xee
    mode:DIO, clock div:1
    load:0x3fce2820,len:0x159c
    load:0x403c8700,len:0xd24
    load:0x403cb700,len:0x2f48
    entry 0x403c8924
    I (24) boot: ESP-IDF v5.5 2nd stage bootloader
    I (24) boot: compile time Aug 19 2025 06:57:06
    I (24) boot: Multicore bootloader
    I (24) boot: chip revision: v0.2
    I (27) boot: efuse block revision: v1.3
    I (30) boot.esp32s3: Boot SPI Speed : 80MHz
    I (34) boot.esp32s3: SPI Mode       : DIO
    I (38) boot.esp32s3: SPI Flash Size : 4MB
    I (42) boot: Enabling RNG early entropy source...
    


    Added after 31 [minutes]:

    
    {
      "vendor": "Tuya",
      "bDetailed": "0",
      "name": "Full Device Name Here",
      "model": "enter short model name here",
      "chip": "ESP32S3",
      "board": "TODO",
      "flags": "1028",
      "keywords": [
        "TODO",
        "TODO",
        "TODO"
      ],
      "pins": {
        "1": "Rel;0",
        "2": "Rel;1",
        "41": "Rel;2",
        "42": "Rel;3",
        "45": "Rel;4",
        "46": "Rel;5"
      },
      "command": "",
      "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
      "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
    }
    


    Added after 9 [hours] 30 [minutes]:

    update - TCA9554 driver for ESP32-S3-ETH-8DI-8RO is almost working
    Helpful post? Buy me a coffee.
  • #193 21640190
    divadiow
    Level 36  
    Code: Text
    Log in, to see the code


    Ok. Something you're making for a project you have in mind?
  • #194 21640201
    p.kaczmarek2
    Moderator Smart Home
    TCA9554 is used to control relays of "industrial" Waveshare ESP32-S3-ETH-8DI-8RO module, so if we want to run OpenESP32 on it, then TCA9554 support is required.

    Added after 10 [hours] 14 [minutes]:

    ESP32-S3-ETH-8DI-8RO also crashes when saving pins, but pins are saved.
    Currently I am working with:
    
    startDriver TCA9554 41 42 0
    setChannelType 0 Toggle
    setChannelType 1 Toggle
    setChannelType 2 Toggle
    setChannelType 3 Toggle
    setChannelType 4 Toggle
    setChannelType 5 Toggle
    setChannelType 6 Toggle
    setChannelType 7 Toggle
    

    Code: YAML
    Log in, to see the code
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #196 21641217
    p.kaczmarek2
    Moderator Smart Home
    TCA9554 driver has been merged and is enabled by default on 4MB ESP32.
    https://github.com/openshwprojects/OpenBK7231...mmit/e6dbea6007e414a9eb9ba7607cf71bde3691c752
    We can use now ESP32-S3-ETH-8DI-8RO with OpenESP32, however, the driver for RTC and Ethernet LAN is still missing.
    Helpful post? Buy me a coffee.
  • #198 21643660
    insmod
    Level 28  
    >>21643657
    Not yet, everything is still in China.
    Ordered C5, C61, T5-E1 and GD32VW553.
    Now i'm waiting for news regarding XH-WB5E (BK7258 from Sparkleiot).
  • #199 21645179
    p.kaczmarek2
    Moderator Smart Home
    @insmod , I am preparing to add DMX512 protocol support, which is used to drive LED strips, just like WS2812. I will split WS2812 into "shared" driver and "backend", backend will be either SPI driver or DMX512. This, however, will require ability to send UART data from arbitrary pin on ESP32. I will be doing my tests on T-Can485 Lilygo, which already has MAX485.

    My question is - how's the UART on ESP32 currently, and how's the UART pin change API? Any input or thoughs on that? I can introduce it as well if it's needed.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #200 21645614
    insmod
    Level 28  
    >>21645179
    Well, uart send always worked.
    Uart receive, while it works now, it does so by polling in infinite cycle in separate task. Very inefficient.
    Pins are hardcoded for now.
  • #201 21646795
    divadiow
    Level 36  
    insmod wrote:
    ESP32-H2


    Code: Text
    Log in, to see the code


    got a Super Mini H2 for the collection
    Super Mini H2 board with ESP32-H2 chip and USB-C connector
  • #202 21647980
    insmod
    Level 28  
    ESP32-C5 testing
    esptool -p COM7 chip_id
    Warning: Deprecated: Command 'chip_id' is deprecated. Use 'chip-id' instead.
    esptool v5.0.2
    Connected to ESP32-C5 on COM7:
    Chip type:          ESP32-C5 (revision v1.0)
    Features:           Wi-Fi 6 (dual-band), BT 5 (LE), IEEE802.15.4, Single Core + LP Core, 240MHz
    Crystal frequency:  48MHz
    MAC:                30:ed:a0:ff:fe:e0:2e:64
    BASE MAC:           30:ed:a0:e0:2e:64
    MAC_EXT:            ff:fe
    
    Stub flasher running.
    
    Warning: ESP32-C5 has no chip ID. Reading MAC address instead.
    MAC:                30:ed:a0:ff:fe:e0:2e:64
    BASE MAC:           30:ed:a0:e0:2e:64
    MAC_EXT:            ff:fe
    
    Hard resetting via RTS pin...


    esptool -p COM7 flash_id
    Warning: Deprecated: Command 'flash_id' is deprecated. Use 'flash-id' instead.
    esptool v5.0.2
    Connected to ESP32-C5 on COM7:
    Chip type:          ESP32-C5 (revision v1.0)
    Features:           Wi-Fi 6 (dual-band), BT 5 (LE), IEEE802.15.4, Single Core + LP Core, 240MHz
    Crystal frequency:  48MHz
    MAC:                30:ed:a0:ff:fe:e0:2e:64
    BASE MAC:           30:ed:a0:e0:2e:64
    MAC_EXT:            ff:fe
    
    Stub flasher running.
    
    Flash Memory Information:
    =========================
    Manufacturer: 46
    Device: 4016
    Detected flash size: 4MB
    
    Hard resetting via RTS pin...


    Bootloop in adapter
    ESP-ROM:esp32c5-eco2-20250121
    Build:Jan 21 2025
    rst:0x3 (RTC_SW_HPSYS),boot:0x18 (SPI_FAST_FLASH_BOOT)
    Core0 Saved PC:0x408018c2
    SPI mode:DIO, clock div:1
    load:0x408556b0,len:0x1754
    load:0x4084bba0,len:0xd9c
    load:0x4084e5a0,len:0x3090
    entry 0x4084bbaa
    I (28) boot: ESP-IDF v5.5-beta1-215-gcf8dad0746 2nd stage bootloader
    I (28) boot: compile time Jul 18 2025 10:38:58
    I (29) boot: chip revision: v1.0
    I (30) boot: efuse block revision: v0.2
    I (33) boot.esp32c5: SPI Speed      : 80MHz
    I (37) boot.esp32c5: SPI Mode       : DIO
    I (41) boot.esp32c5: SPI Flash Size : 2MB
    I (45) boot: Enabling RNG early entropy source...
    I (49) boot: Partition Table:
    I (52) boot: ## Label            Usage          Type ST Offset   Length
    I (58) boot:  0 nvs              WiFi data        01 02 00009000 00006000
    I (64) boot:  1 phy_init         RF data          01 01 0000f000 00001000
    I (71) boot:  2 factory          factory app      00 00 00010000 00100000
    I (78) boot: End of partition table
    I (81) esp_image: segment 0: paddr=00010020 vaddr=420d0020 size=24344h (148292) map
    I (112) esp_image: segment 1: paddr=0003436c vaddr=40800000 size=0bcach ( 48300) load
    I (121) esp_image: segment 2: paddr=00040020 vaddr=42000020 size=c2each (798380) map
    I (244) esp_image: segment 3: paddr=00102ed4 vaddr=4080bcac size=07cbch ( 31932) load
    I (251) esp_image: segment 4: paddr=0010ab98 vaddr=40813980 size=03c6ch ( 15468) load
    I (259) boot: Loaded app from partition at offset 0x10000
    I (259) boot: Disabling RNG early entropy source...
    I (270) cpu_start: Unicore app
    W (278) clk: esp_perip_clk_init() has not been implemented yet
    I (284) cpu_start: Pro cpu start user code
    I (284) cpu_start: cpu freq: 240000000 Hz
    I (284) app_init: Application information:
    I (284) app_init: Project name:     5g_test
    I (288) app_init: App version:      1
    I (291) app_init: Compile time:     Jul 18 2025 10:38:45
    I (296) app_init: ELF file SHA256:  dd06d3d00...
    I (300) app_init: ESP-IDF:          v5.5-beta1-215-gcf8dad0746
    I (306) efuse_init: Min chip rev:     v1.0
    I (310) efuse_init: Max chip rev:     v1.99 
    I (314) efuse_init: Chip rev:         v1.0
    I (318) heap_init: Initializing. RAM available for dynamic allocation:
    I (324) heap_init: At 4081D690 len 0003EF10 (251 KiB): RAM
    I (329) heap_init: At 4085C5A0 len 00002F58 (11 KiB): RAM
    I (334) heap_init: At 50000000 len 00003FE8 (15 KiB): RTCRAM
    I (340) spi_flash: detected chip: generic
    I (343) spi_flash: flash io: dio
    W (346) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
    I (359) sleep_gpio: Configure to isolate all GPIO pins in sleep state
    I (365) sleep_gpio: Enable automatic switching of GPIO sleep configuration
    I (371) coexist: coex firmware version: 831ec70
    I (390) coexist: coexist rom version 78e5c6e42
    I (390) main_task: Started on CPU0
    I (390) main_task: Calling app_main()
    DOIT-C5 WiFi TEST Tool
    I (390) pp: pp rom version: 78a72e9d5
    I (390) net80211: net80211 rom version: 78a72e9d5
    I (400) wifi:wifi driver task: 408234c8, prio:23, stack:6656, core=0
    I (400) wifi:wifi firmware version: 956d811
    I (400) wifi:wifi certification version: v7.0
    I (410) wifi:config NVS flash: enabled
    I (410) wifi:config nano formatting: disabled
    I (420) wifi:mac_version:HAL_MAC_ESP32AX_752MP_ECO2,ut_version:N, band mode:0x3
    I (420) wifi:Init data frame dynamic rx buffer num: 32
    I (430) wifi:Init static rx mgmt buffer num: 5
    I (430) wifi:Init management short buffer num: 32
    I (440) wifi:Init dynamic tx buffer num: 32
    I (440) wifi:Init static tx FG buffer num: 2
    I (440) wifi:Init static rx buffer size: 1700 (rxctrl:64, csi:512)
    I (450) wifi:Init static rx buffer num: 10
    I (450) wifi:Init dynamic rx buffer num: 32
    I (460) wifi_init: rx ba win: 6
    I (460) wifi_init: accept mbox: 6
    I (460) wifi_init: tcpip mbox: 32
    I (470) wifi_init: udp mbox: 6
    I (470) wifi_init: tcp mbox: 6
    I (470) wifi_init: tcp tx win: 5760
    I (480) wifi_init: tcp rx win: 5760
    I (480) wifi_init: tcp mss: 1440
    I (480) wifi_init: WiFi IRAM OP enabled
    I (490) wifi_init: WiFi RX IRAM OP enabled
    I (490) wifi_init: WiFi SLP IRAM OP enabled
    I (490) phy_init: phy_version 102,171bf417,Jun 12 2025,15:57:12
    W (500) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
    I BOD: Brownout detector was triggered
    

    OBK factory fails to boot. Bootloader offset is wrong (needs to be at 0x2000, we have 0x0).
    ESP-ROM:esp32c5-eco2-20250121
    Build:Jan 21 2025
    rst:0x7 (TG0_WDT_HPSYS),boot:0x18 (SPI_FAST_FLASH_BOOT)
    Core0 Saved PC:0x40026cfc
    invalid header: 0xbc379073
    invalid header: 0xbc379073
    invalid header: 0xbc379073
    assertion "result == ETS_OK" failed: file "ets_main.c", line 369, function: ets_flash_boot
    

    Writing OTA image at 0x10000 doesn't help, because image is larger than factory partition.
    I (81) esp_image: segment 0: paddr=00010020 vaddr=420d0020 size=34144h (213316) map
    I (126) esp_image: segment 1: paddr=0004416c vaddr=40800000 size=0beach ( 48812) load
    I (136) esp_image: segment 2: paddr=00050020 vaddr=42000020 size=cd320h (840480) map
    I (280) esp_image: segment 3: paddr=0011d348 vaddr=4080beac size=0b1fch ( 45564) load
    I (290) esp_image: segment 4: paddr=0012854c vaddr=40817100 size=04bc8h ( 19400) load
    I (295) esp_image: segment 5: paddr=0012d11c vaddr=50000000 size=000a4h (   164) load
    E (296) esp_image: Image length 1167856 doesn't fit in partition length 1048576
    E (301) boot: Factory app partition is not bootable
    E (306) boot: No bootable app partitions in the partition table
    


    Added after 12 [minutes]:

    With https://github.com/openshwprojects/OpenBK7231T_App/pull/1780 it boots, but for me it reboots during wifi bringup
    I (322) cpu_start: Unicore app
    W (330) clk: esp_perip_clk_init() has not been implemented yet
    I (336) cpu_start: Pro cpu start user code
    I (336) cpu_start: cpu freq: 240000000 Hz
    I (336) app_init: Application information:
    I (336) app_init: Project name:     OpenBeken
    I (340) app_init: App version:      1780_merge_7d33cca5710f_4M
    I (346) app_init: Compile time:     Aug 29 2025 15:35:24
    I (351) app_init: ELF file SHA256:  7aed4c4e6...
    I (355) app_init: ESP-IDF:          v5.5
    I (359) efuse_init: Min chip rev:     v1.0
    I (362) efuse_init: Max chip rev:     v1.99 
    I (366) efuse_init: Chip rev:         v1.0
    I (370) heap_init: Initializing. RAM available for dynamic allocation:
    I (377) heap_init: At 40826D60 len 00035840 (214 KiB): RAM
    I (382) heap_init: At 4085C5A0 len 00002F58 (11 KiB): RAM
    I (387) heap_init: At 500000A4 len 00003F44 (15 KiB): RTCRAM
    I (393) spi_flash: detected chip: generic
    I (396) spi_flash: flash io: dio
    I (399) sleep_gpio: Configure to isolate all GPIO pins in sleep state
    I (405) sleep_gpio: Enable automatic switching of GPIO sleep configuration
    I (423) pm: Frequency switching config: CPU_MAX: 240, APB_MAX: 80, APB_MIN: 48, Light sleep: DISABLED
    I (423) coexist: coex firmware version: 831ec70
    I (425) coexist: coexist rom version 78e5c6e42
    I (429) main_task: Started on CPU0
    I (429) main_task: Calling app_main()
    I (429) temperature_sensor: Range [-10°C ~ 80°C], error < 1°C
    OpenESP32C5, version 1780_merge_7d33cca5710f_4M
    Entering initLog()...
    Commands registered!
    initLog() done!
    Info:MAIN:Main_Init_Before_Delay
    Main_Init_Before_Delay done
    Main_Init_Delay
    Main_Init_Delay done
    Warn:CFG:CFG_InitAndLoad: Correct config has been loaded with 1 changes count.
    Error:CMD:no file early.bat err -2
    Info:GEN:PIN_SetupPins pins have been set up.
    Info:MAIN:Main_Init_Before_Delay done
    Info:MAIN:Main_Init_Delay
    Info:MAIN:Main_Init_Delay done
    Info:MAIN:Main_Init_After_Delay
    Info:MAIN:Using SSID []
    Info:MAIN:Using Pass []
    Error:HTTP:Created HTTP SV thread with (stack=2048)
    Info:MQTT:MQTT_RegisterCallback called for bT espA0E02E64/ subT espA0E02E64/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT esp/ subT esp/+/set
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/espA0E02E64/ subT cmnd/espA0E02E64/+
    Info:MQTT:MQTT_RegisterCallback called for bT cmnd/esp/ subT cmnd/esp/+
    Info:MQTT:MQTT_RegisterCallback called for bT espA0E02E64/ subT espA0E02E64/+/get
    Info:CMD:CMD_StartScript: started @startup at the beginning
    Info:CMD:LFS_ReadFile: failed to file autoexec.bat
    Info:CMD:CMD_StartScript: failed to get file autoexec.bat
    Info:BERRY:[berry init]
    Info:BERRY:[berry start]
    Info:BERRY:[berry end]
    Info:BERRY:[berry start]
    Info:BERRY:be_pcall fail, retcode 3
    Info:BERRY:top=3
    Info:BERRY:stack traceback:
    Info:BERRY:	
    Info:BERRY:string
    Info:BERRY::1:
    Info:BERRY: in function `
    Info:BERRY:main
    Info:BERRY:`
    Info:BERRY:stack[1] = type='function' ()
    Info:BERRY:stack[2] = type='string' (import_error)
    Info:BERRY:stack[3] = type='string' (module 'autoexec' not found)
    Info:BERRY:[berry end]
    Info:MAIN:Main_Init_After_Delay done
    Info:MAIN:Time 1, idle 0/s, free 202640, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 0/0 
    Info:MAIN:Time 2, idle 0/s, free 202640, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 0/0 
    Info:MAIN:Time 3, idle 0/s, free 202640, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 0/0 
    Info:MAIN:Time 4, idle 0/s, free 202640, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 0/0 
    I (5489) pp: pp rom version: 78a72e9d5
    I (5489) net80211: net80211 rom version: 78a72e9d5
    Info:MAIN:Time 5, idle 0/s, free 202640, MQTT 0(0), bWifi 0, secondsWithNoPing -1, socks 0/0 
    I (5499) wifi:wifi driver task: 40830c04, prio:23, stack:3072, core=0
    I (5499) wifi:wifi firmware version: f3dbad7
    I (5499) wifi:wifi certification version: v7.0
    I (5509) wifi:config NVS flash: disabled
    I (5509) wifi:config nano formatting: enabled
    I (5509) wifi:mac_version:HAL_MAC_ESP32AX_752MP_ECO2,ut_version:N, band mode:0x3
    I (5519) wifi:Init data frame dynamic rx buffer num: 32
    I (5529) wifi:Init static rx mgmt buffer num: 5
    I (5529) wifi:Init management short buffer num: 32
    I (5539) wifi:Init dynamic tx buffer num: 32
    I (5539) wifi:Init static tx FG buffer num: 2
    I (5539) wifi:Init static rx buffer size: 1700 (rxctrl:64, csi:512)
    I (5549) wifi:Init static rx buffer num: 10
    I (5549) wifi:Init dynamic rx buffer num: 32
    I (5559) wifi_init: rx ba win: 6
    I (5559) wifi_init: accept mbox: 6
    I (5559) wifi_init: tcpip mbox: 32
    I (5569) wifi_init: udp mbox: 6
    I (5569) wifi_init: tcp mbox: 6
    I (5569) wifi_init: tcp tx win: 5760
    I (5579) wifi_init: tcp rx win: 5760
    I (5579) wifi_init: tcp mss: 1440
    I (5579) wifi_init: WiFi IRAM OP enabled
    I (5589) wifi_init: WiFi RX IRAM OP enabled
    I (5589) wifi_init: WiFi SLP IRAM OP enabled
    I (5589) phy_init: phy_version 102,171bf417,Jun 12 2025,15:57:12
    W (5599) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
    I BOD: Brownout detector was triggered
    


    Added after 9 [minutes]:

    With a little more juice (second adapter 3v3 and gnd wired to the first adapter, both with ams1117) it boots fully and creates connectable AP.
    Wifi scan sees 5ghz networks.
    Attached factory image backup
  • #203 21648381
    insmod
    Level 28  
    When AP is starting, power spikes to 1.4W/0.3A at 5V.
    So, about 0.5A at 3.3V. Don't know why AMS1117 on board is not enough.
    The board itself consumes about 0.04W/0.009A at 5V.
  • #204 21648392
    p.kaczmarek2
    Moderator Smart Home
    I might have had somewhat similar issue with LilyGo T-Can485. Random brownouts on start and not stable WiFi. It was reproducible with multiple firmwares and on another site. The solution was to solder extra capacitor on the 3.3V rail.
    Close-up of LilyGO board with soldered capacitor and USB cable
    Can you try something similar? Just avoid too large capacitance as well... so you won't overload USB port. How your board looks like, which board model do you have?
    Helpful post? Buy me a coffee.
  • #205 21650675
    divadiow
    Level 36  
    >>21643657

    from factory boot loops with
    Code: Text
    Log in, to see the code


    I assume it's blank

    download mode = EN high, IO8 high, IO9 low

    ESP32-C6 module connected to colored jumper wires on a blue work mat.

    Code: Text
    Log in, to see the code


    Code: Text
    Log in, to see the code


    Code: Text
    Log in, to see the code


    flash is blank

    Code: Text
    Log in, to see the code


    Code: Text
    Log in, to see the code


    Code: Text
    Log in, to see the code


    OpenESPC61 initial
    Code: Text
    Log in, to see the code
  • #206 21650684
    insmod
    Level 28  
    Need to update ESP-IDF to v5.5.1 in workflow
  • #209 21651898
    max4elektroda
    Level 21  
    divadiow wrote:
    doesn't see 5Ghz AC-only AP and won't blindly join it either

    ... wasn't C61 with only 2.4 WiFi?

    I'm waiting for the ordered C5 modules to test 5Ghz, but it'll take some time...

Topic summary

The discussion centers on configuring OpenBeken firmware for ESP32 devices with a default 4MB flash size using sdkconfig.defaults.esp32. Initial issues included missing sdkconfig.defaults.esp32 and bootloader offset misconfiguration, which were resolved to enable successful compilation and flashing. Various ESP32 variants were tested, including ESP32-C3, ESP32-C6, ESP32-CAM, ESP32-C2, ESP32-D0WDQ5-V3 (ESP-WROOM-32), and ESP32-S3, with reports on flash size detection, bootloader behavior, and peripheral support. Challenges encountered involved stack overflows on reboot, watchdog timer resets, and GPIO functionality inconsistencies, particularly on non-C/S ESP32 boards. Solutions included adjusting makefiles for 4MB flash, fixing bootloader offsets, increasing task stack sizes, and replacing software timers with hardware timers for improved timing accuracy. Peripheral drivers such as BMP280, AHT2x, DS1820, DHT11/22, PWM, UART, and NTP were tested with varying success; some required specific pin assignments or additional delays to prevent crashes. Deep sleep support was added without GPIO wakeup. The firmware uses the Espressif ESP-IDF SDK for ESP32 and plans for ESP8266 porting were discussed, noting SDK differences and RAM constraints. Continuous integration (CI) and online build availability were confirmed. Users shared flashing tools, partition table considerations, and debugging tips including esptool flash_id and efuse burning. The community actively tested and reported logs, crashes, and feature functionality, contributing to iterative fixes and enhancements.
Summary generated by the language model.
ADVERTISEMENT