Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: ESP32 port of 2.1.9 firmware #68015

    cherokeecruiser2
    Participant

    The RTC module SDA and SCL pins connect to the same I2C pins as the Display, along with power and ground.
    You are correct that the address is different for the RTC module. The firmware identifies which type of RTC is present.
    I used a DS3231 module, and have also tried a DS1307 as well. Both worked perfectly

    in reply to: ESP32 port of 2.1.9 firmware #68011

    cherokeecruiser2
    Participant

    Hi,

    When I first loaded the firmware onto an ESP32, I didn’t have a RTC module connected. It functioned fine, got the time from the NTP server, but after a while it behaved in a similar manner as described. I can’t remember if it was the same date as you were getting, but it didn’t happen anymore after I connected a working RTC module. Not sure if that helps….

    in reply to: ESP32 port of 2.1.9 firmware #66954

    cherokeecruiser2
    Participant

    Hi,

    Thanks for all the effort of porting to the ESp32.

    I have an ESp32 WROOM with external OLED on pins SDA 21 and SCL 22. Everything compiled without errors, but after it uploaded, it would only continually reboot and never start.

    I have modified a small piece of code in mainArduino

    The Original Code:

    
    #if defined(ESP32)
    
      int i;
      unsigned int pin_list[] = ON_BOARD_GPIN_LIST;
      for( i=0; i<7; i++ ){
        if(pin_list[i] !=255){
          pinMode(i, OUTPUT);
          digitalWrite(i, ~STATION_LOGIC);
        }
      }
    

    Changed to this:

    
    #if defined(ESP32)
    
      int i;
      unsigned int pin_list[] = ON_BOARD_GPIN_LIST;
      for( i=0; i<8; i++ ){
        if(pin_list[i] !=255){
          pinMode(pin_list[i], OUTPUT);
          digitalWrite(pin_list[i], ~STATION_LOGIC);
        }
      }
    
    #endif
    

    I believe the original code was potentially setting pins 6 and 7 which on this version of ESP32 are connected to the integrated SPI flash, and causing the crash reboot cycle.

    It now works perfectly for me – hope it helps for someone else

Viewing 3 posts - 1 through 3 (of 3 total)