WDT reset on WPD of some pins

reinderien
Posts: 2
Joined: Sat May 20, 2023 2:51 am

WDT reset on WPD of some pins

Postby reinderien » Sat May 20, 2023 3:05 am

To manage noise & power I'm setting unused pins on my ESP32C3 MINI 1 as such:
  1.     static const gpio_config_t unused = {
  2.         .pin_bit_mask =
  3.               (1u << GPIO_NUM_0)
  4.             | (1u << GPIO_NUM_1)
  5.             | (1u << GPIO_NUM_2)
  6.             | (1u << GPIO_NUM_3)
  7.             | (1u << GPIO_NUM_10),
  8.         .mode = GPIO_MODE_DISABLE,
  9.         .pull_up_en = GPIO_PULLUP_DISABLE,
  10.         .pull_down_en = GPIO_PULLDOWN_ENABLE,
  11.         .intr_type = GPIO_INTR_DISABLE,
  12.     };
  13.     ESP_ERROR_CHECK_WITHOUT_ABORT(gpio_config(&unused));
If I extend this to GPIO 15,16,17, then the SOC hangs and the watchdog kills it, even though these pins are shown as unused in the module's circuit diagram. My current theory is that since their default MUX function is SPI, the module has some undocumented SPI bus (bootloader?)

What's actually attached to these pins?

MicroController
Posts: 1222
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: WDT reset on WPD of some pins

Postby MicroController » Mon May 22, 2023 8:06 am

What's actually attached to these pins?
The on-chip or on-module flash memory which holds the application code. Don't mess with those pins :)

reinderien
Posts: 2
Joined: Sat May 20, 2023 2:51 am

Re: WDT reset on WPD of some pins

Postby reinderien » Tue May 23, 2023 1:33 am

MicroController wrote:
Mon May 22, 2023 8:06 am
The on-chip or on-module flash memory which holds the application code. Don't mess with those pins :)
Good to know; but - I wish that that were somehow indicated here, instead of a big empty space:

Image

Who is online

Users browsing this forum: No registered users and 114 guests