logo elektroda
logo elektroda
X
logo elektroda

ESP32-C2 Boot Loop After Flashing OpenESP32C2_1.18.158_2M on 2MB WiFi Module

jmkrzyszt 54 6
ADVERTISEMENT
  • #1 21643283
    jmkrzyszt
    Level 5  
    Hello,

    I'm trying to reflash a WiFi module of a solar charging controller with an open source firmware.
    ESP32-C2 Boot Loop After Flashing OpenESP32C2_1.18.158_2M on 2MB WiFi Module ESP32-C2 Boot Loop After Flashing OpenESP32C2_1.18.158_2M on 2MB WiFi Module ESP32-C2 Boot Loop After Flashing OpenESP32C2_1.18.158_2M on 2MB WiFi Module ESP32-C2 Boot Loop After Flashing OpenESP32C2_1.18.158_2M on 2MB WiFi Module Black Labrador retriever running on grass with a stick in its mouth.

    Esptool reports:
    Code: Text
    Log in, to see the code

    Flashing the module with:
    Code: Bash
    Log in, to see the code
    succeeds, but then the device (still powered only from my USB-serial adapter) doesn't boot, only reboots spontaneously, e.g.:
    Code: Text
    Log in, to see the code
    I think it also doesn't boot when powered from a car battery since its AP doesn't appear.

    I've also tried tasmota and esphome, with similar results. Reflashed back with original firmware, the device works correctly.

    Any ideas on what I'm doing wrong?
    AI: Could you provide the exact brand and model of the WiFi module and the solar charging controller it's from? This will help determine if there are any known compatibility issues or special requirements for your hardware.
    ESP32-C2 Boot Loop After Flashing OpenESP32C2_1.18.158_2M on 2MB WiFi Module
    https://aliexpress.com/item/1005008843512568.html
    AI: Where did you obtain the OpenESP32C2_1.18.158_2M.factory.bin (and the Tasmota/ESPHome images) you flashed—were they downloaded pre-built, or did you build them yourself? If built, which board or configuration did you select?
    https://github.com/openshwprojects/OpenBK7231.../1.18.158/OpenESP32C2_1.18.158_2M.factory.bin

    Tasmota images marked ESP32C2 available on https://tasmota.github.io/install/

    ESPHome custom image generated with the following configuration (wifi and dependent sections either enabled or disabled):
    Code: YAML
    Log in, to see the code
  • ADVERTISEMENT
  • #2 21643289
    p.kaczmarek2
    Moderator Smart Home
    Can you provide original backup of the firmware?

    @divadiow @insmod ideas? I am not sure if I have C2 at hand, but I am sure that I tested OpenESP32 on S3 just few days ago and it worked well.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #4 21643315
    p.kaczmarek2
    Moderator Smart Home
    User says he also tried Tasmota, etc, so possibly there is something else wrong than our binary.
    Helpful post? Buy me a coffee.
  • #5 21643329
    divadiow
    Level 35  
    about that trace, GPT says

    Code: Text
    Log in, to see the code
  • #6 21643332
    jmkrzyszt
    Level 5  
    >>21643289
    Yes, I'll do, as soon as I capture another copy with my local settings cleared after reflashing.

    Added after 52 [minutes]:

    Unfortunately, my only USB-serial adapter (FTD) suddenly stopped working -- it no longer appears in the system when connected. Since I successfully reflashed original firmware on the problematic module a few times with that adapter, I don't think it could be responsible for my issues with your and other firmware, but anyway, it looks like I need to purchase a new one before I'm able to continue.
  • ADVERTISEMENT
  • #7 21643461
    insmod
    Level 26  
    40Mhz crystal frequency - needs special compile-time flags
    CONFIG_XTAL_FREQ_40=y
    CONFIG_XTAL_FREQ=40
ADVERTISEMENT