GPIO34-36 Interrupt cause kernel panic
Posted: Tue Apr 23, 2019 12:35 pm
I would use pin 34 as an input with low level (GPIO_INTR_LOW_LEVEL) interrupt. Execution below code cause kernel panic on gpio_install_isr_service line. Why? Is there any workaround?
Kernel pannic occur for any of input only pins: 34, 35, SENSOR_VP, SENSOR_VN
Kernel pannic occur for any of input only pins: 34, 35, SENSOR_VP, SENSOR_VN
Code: Select all
gpio_config_t io_conf;
io_conf.pin_bit_mask = (1ULL << PIN_NUM_ADC_DRDY);
io_conf.intr_type = GPIO_INTR_LOW_LEVEL;
io_conf.mode = GPIO_MODE_INPUT;
io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE;
io_conf.pull_up_en = GPIO_PULLUP_ENABLE;
gpio_config(&io_conf);
drdy_semaphore = xSemaphoreCreateBinary();
gpio_install_isr_service(ESP_INTR_FLAG_IRAM);
gpio_isr_handler_add(PIN_NUM_ADC_DRDY, drdy_isr_handler, NULL);