Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More info on GPIOs 33, 34 #26

Open
trip5 opened this issue Oct 4, 2024 · 0 comments
Open

More info on GPIOs 33, 34 #26

trip5 opened this issue Oct 4, 2024 · 0 comments

Comments

@trip5
Copy link

trip5 commented Oct 4, 2024

Not sure if this applies to all ESP32-S3s since I only have the ESP32-S3-WROOM-1-N16R8 to work with and I've already lost so much time to this puzzle... I'm glad I found your Github because it seems the only good ESP32-S3 page around!

I'm working on porting ESP32Radio-V2 to run on the ESP32-S3 and I discovered something interesting... if GPIOs 33 and 34 are allowed to be probed during this loop (already excluded 0, 22-32, 35, 36, 37, 43, 44, 46):

  for ( i = 0 ; (pinnr = progpin[i].gpio) >= 0 ; i++ )   // Check programmable input pins
  {
    pinMode ( pinnr, INPUT_PULLUP ) ;                    // Input for control button
    vTaskDelay ( 10 / portTICK_PERIOD_MS ) ;
    if ( ( progpin[i].cur = digitalRead ( pinnr ) ) == HIGH )
    {
      p = "HIGH" ;
    }
    else
    {
      p = "LOW, probably no PULL-UP" ;                   // No Pull-up
    }
    ESP_LOGI ( TAG, "GPIO%d is %s", pinnr, p ) ;
  }
  vTaskDelay ( 10 / portTICK_PERIOD_MS ) ;

At this stage:

    WiFi.disconnect() ;                                  // After restart router could still
    vTaskDelay ( 500 / portTICK_PERIOD_MS ) ;            //   keep old connection
    WiFi.mode ( WIFI_STA ) ;                             // This ESP is a station

I get a crash:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40377fe5
  #0  0x40377fe5 in panicHandler at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/port/panic_handler.c:217

I didn't even think to disable them (like I did with other pins as listed above) because I thought they might be exposed on other S3 boards. But now that I triple-checked your table, I can see there's just no documentation on them. So, whatever GPIOs 33 & 34 do , they can't be allowed to be set as input. They cause a crash on WiFi.mode ( WIFI_STA ) ;.

Sidenote that 22-25 probe fine but they do display "Invalid Pin" as an error message. Probably 35-37 also probe fine but I haven't tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant