logo elektroda
logo elektroda
X
logo elektroda

ESP-12 Saves Network Config, ESP-01 Doesn't with Same Arduino Code

matekogon 414 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19221895
    matekogon
    Level 22  
    Fellows I am trying to play around with esp modules a bit. I have encountered a problem on the day. I am trying to save the network configuration to the "eeproma " in the module. I have a simple code which when uploaded to the ESP-12 saves the configuration while the same code uploaded to the ESP-01 no longer saves the configuration . Do you have any clues as to what the problem might be. Of course the code is written in arduino.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 19221929
    gmp
    Level 19  
    matekogon wrote:
    Colleagues I am trying to play with esp modules a bit. I have encountered a problem on the day. I am trying to save the network configuration to the "eeproma " in the module. I have a simple code that when uploaded to the ESP-12 saves the configuration while the same code uploaded to the ESP-01 no longer saves the configuration . Do you have any clues as to what the problem might be. Of course the code is written in arduino.
    .
    I'm not familiar with these modules, the topic suggests it's the same type of module, but it's not, so you need to check if the Arduino libraries support them the same, compare schematics, etc. And if it is the same module type - then I would suggest to analyse the initialisation, maybe some variables are not set, and also analyse all the compiler warnings.
  • ADVERTISEMENT
  • Helpful post
    #3 19222047
    khoam
    Level 42  
    matekogon wrote:
    I have a simple code that when uploaded to the ESP-12 saves the configuration while the same code uploaded to the ESP-01
    .
    It all depends on whether a partition is created in Flash for EEPROM emulation. If you are programming with the Arduino IDE, then check what Flash partition scheme you have selected for the module.
    What is the Flash size for this ESP-01, 512kB or 1MB?
  • #4 19222927
    matekogon
    Level 22  
    khoam wrote:
    .
    It all depends on whether a partition is created in Flash for EEPROM emulation.


    Thanks mate for the hint. You guided me indirectly to where to look for the problem and it's embarrassing to admit where the problem was 8-O .

    I had the project set up for the ESP-12 board and not the ESP-01 :crazyeyes: Topic closed
ADVERTISEMENT