We are using ESP-12E board from AI Thinker and SDK1.1.0 (esp_iot_sdk_v1.1.0_15_05_26.zip).
ESP-12E has two additional GPIO pins (GPIO9 and GPIO10) that were not there in ESP-12 board. We are trying to use these additional GPIO pins and configured the mux according but we are facing wdt rest if we output any value on these pins. Below is out user_init.c file to reproduce the problem
Code: Select all
#include "ets_sys.h"
#include "osapi.h"
#include "user_interface.h"
#include "gpio.h"
void user_rf_pre_init(void)
{
}
void user_init(void)
{
uart_reattach();
os_printf("SDK version:%s\n", system_get_sdk_version());
PIN_FUNC_SELECT(PERIPHS_IO_MUX_SD_DATA2_U, FUNC_GPIO9);
GPIO_OUTPUT_SET(GPIO_ID_PIN(9), 0);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_SD_DATA3_U, FUNC_GPIO10);
GPIO_OUTPUT_SET(GPIO_ID_PIN(10), 0);
}
If we use other pins like GPIO14 it works fine and we do not see any wdt reset. Please see code working below for GPIO14
Code: Select all
#include "ets_sys.h"
#include "osapi.h"
#include "user_interface.h"
#include "gpio.h"
void user_rf_pre_init(void)
{
}
void user_init(void)
{
uart_reattach();
os_printf("SDK version:%s\n", system_get_sdk_version());
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTMS_U, FUNC_GPIO14);
GPIO_OUTPUT_SET(GPIO_ID_PIN(14), 0);
}
Can you please let us know if anything special is required to use GPIO9 and GPIO10 on ESP-12E board
Thank you in advance.