logo elektroda
logo elektroda
X
logo elektroda

[Solved] ESP8266MOD: No WiFi connection - program code issues

dasej 2316 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19425195
    dasej
    Level 32  
    Welcome.

    The topic is about this version of the mod
    ESP8266MOD: No WiFi connection - program code issues .

    Code: C / C++
    Log in, to see the code
    .


    There is practically nothing in the program and it constantly resets itself.
    As I do not attach the WiFi support the module itself when blinking the diode works.

    Is the module defective or am I doing something wrong?

    ESP8266MOD: No WiFi connection - program code issues

    Code: Ini
    Log in, to see the code
    .
  • ADVERTISEMENT
  • #2 19425235
    sylweksylwina
    Moderator of Computers service
    Power supply all correct? I.e. you're probably powering from USB anyway, but you could check that the voltages are correct after the stabiliser etc.

    Exception indicates a problem with program execution, if it is caused by WiFi code then maybe try clearing memory and uploading new firmware.

    rst cause 2 it looks like the reset button was pressed.

    Don't do so many delays because if you start to complicate the code, it will start to watchdog reset the board (rst cause 4).
    You can give yield() in the main program loop.
  • ADVERTISEMENT
  • #3 19425289
    dasej
    Level 32  
    I fed 3.3V from the power supply behind the stabiliser and still the same.
    The button is working, when I hold it down the ESP does not start.
    I added a delay so that ESP resets more slowly.
  • #4 19425336
    Anonymous
    Level 1  
  • #5 19425405
    Anonymous
    Level 1  
  • ADVERTISEMENT
  • #6 19425450
    Anonymous
    Level 1  
  • #7 19425463
    dasej
    Level 32  
    @khoam .
    I received something like this back.

    Code: Ini
    Log in, to see the code
    .

    Added after 1 [minute]:

    @Jarzabek666 .

    My dear reader, we are not writing here about DELAY.
  • Helpful post
    #8 19425469
    Anonymous
    Level 1  
  • #9 19425500
    dasej
    Level 32  
    @khoam Many thanks works.
    Two words of explanation.
  • ADVERTISEMENT
  • #10 19425505
    Anonymous
    Level 1  
  • #11 19425519
    sylweksylwina
    Moderator of Computers service
    Okay I actually got something mixed up, although I try to avoid delays anyway, maybe that's what got me worked up. Although I'll admit honestly that I haven't figured out the basics like delay in the source files.

    Stack trace decoder would indeed help to track down the problem, although with this simple program it probably helps just to tick "erase all flash contents". Sometimes things can go wrong in the configuration and circuses happen.
  • #12 19425532
    dasej
    Level 32  
    Many thanks for your help @khoam

Topic summary

The discussion revolves around issues with establishing a WiFi connection using the ESP8266MOD module. The user provided a code snippet but encountered problems, including exceptions during execution. Responses suggested checking the power supply, clearing memory, and using the "Erase Flash" option in the Arduino IDE to resolve potential issues with residual settings. The importance of minimizing delays in the code to prevent watchdog timer resets was emphasized. Additionally, using the ESP8266/ESP32 Exception Stack Trace Decoder was recommended for debugging. Ultimately, the user found success by erasing all flash contents, which resolved the connection issue.
Summary generated by the language model.
ADVERTISEMENT