使用ES32C3 master分支,增加一个GPIO中断,代码如下:
if (gpioext_obj[index].init_param->int_pin != PIN_UNASSIGNED)
{
gpio_config_t io_conf;
ESP_LOGE(TAG, "%s: int io %d ", __func__, gpioext_obj[index].init_param->int_pin);
//enable interrupt
io_conf.intr_type = GPIO_INTR_ANYEDGE; /* falling */
//set as input mode
io_conf.mode = GPIO_MODE_INPUT;
//bit mask of the pins that you want to set,e.g.GPIO18/19
io_conf.pin_bit_mask = 1 << gpioext_obj[index].init_param->int_pin; /* GP19 */
//disable pull-down mode
io_conf.pull_down_en = 0;
//enable pull-up mode
io_conf.pull_up_en = GPIO_PULLUP_ENABLE;
//configure GPIO with the given settings
gpio_config(&io_conf);
//change gpio intrrupt type for one pin
gpio_set_intr_type(gpioext_obj[index].init_param->int_pin, GPIO_INTR_ANYEDGE);
//install gpio isr service
gpio_install_isr_service(0);
//hook isr handler for specific gpio pin
gpio_isr_handler_add(gpioext_obj[index].init_param->int_pin, drv_gpioext_irq_cbFxn, (void*)index);
}
static void drv_gpioext_irq_cbFxn(void *arg)
{
GPIO_EXT_CHIP index = (GPIO_EXT_CHIP)arg;
MC_pub(EVENT_GPIOEXT, EVENT_GPIOEXT_ARG_INT, 1, index);
}
在多次中断后出现
I (1118) app_main: (202)free memory 129404
I (1848) AUDIO_HAL: audio_read_data_thread: running
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
Core 0 register dump:
MEPC : 0x403876c8 RA : 0x40388dd4 SP : 0x3fc913f0 GP : 0x3fc8e400
TP : 0x3fc725e0 T0 : 0x7fffffff T1 : 0x600c2138 T2 : 0x00000003
S0/FP : 0xffffffff S1 : 0x3fc9df08 A0 : 0x3fc9df08 A1 : 0x3fc9dd58
A2 : 0x00000019 A3 : 0x00000019 A4 : 0x3fc9dd58 A5 : 0x3fc9dd58
A6 : 0xffffffff A7 : 0x00000000 S2 : 0x00000000 S3 : 0x3fc91440
S4 : 0x00000000 S5 : 0xffffffff S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x3fc96dd4 T4 : 0x00000000 T5 : 0x00000001 T6 : 0x00000000
MSTATUS : 0x00001881 MTVEC : 0x40380001 MCAUSE : 0x00000018 MTVAL : 0xfed67de3
MHARTID : 0x00000000
Stack memory:
3fc913f0: 0x00000000 0x00000001 0x3fc9def8 0x40387b62 0x3fce0000 0x3fce0000 0x00001490 0xffffffff
3fc91410: 0x00000000 0x3fcdfcc4 0x00000000 0x000000b5 0x00000000 0x00000000 0x00000000 0x00000000
3fc91430: 0x3fc9dedc 0x00000000 0x3fc9f2ac 0x42110fc6 0x00000000 0x3c137fa0 0x00000000 0x00000000
3fc91450: 0x00000000 0x00000000 0x00000000 0x0000002b 0x000000ff 0x00000001 0x00000001 0x42110236
3fc91470: 0xffffffff 0x00004000 0x3fc8e958 0x4206e4d8 0x00001881 0x00000000 0x3fcc09a4 0x4206e720
3fc91490: 0xffffffff 0x00004000 0x3fc8e958 0x00000001 0x00001881 0x00000000 0x00080000 0x4200b3b8
3fc914b0: 0x00001881 0x00000000 0x00000000 0x403829fa 0x00001881 0x80000009 0x00000008 0x4038c90c
3fc914d0: 0x00000000 0x80000003 0x3fcc1864 0x00000000 0x403801ba 0x00000000 0x00000000 0x4038019e
3fc914f0: 0x00000000 0x3fc914f8 0xffffffff 0x3fc914f8 0x3fc914f8 0x00000000 0x3fc9150c 0xffffffff
3fc91510: 0x3fc9150c 0x3fc9150c 0x00000000 0x3fc91520 0xffffffff 0x3fc91520 0x3fc91520 0x00000000
3fc91530: 0x3fc91534 0xffffffff 0x3fc91534 0x3fc91534 0x00000000 0x3fc91548 0xffffffff 0x3fc91548
3fc91550: 0x3fc91548 0x00000000 0x3fc9155c 0xffffffff 0x3fc9155c 0x3fc9155c 0x00000000 0x3fc91570
3fc91570: 0xffffffff 0x3fc91570 0x3fc91570 0x00000000 0x3fc91584 0xffffffff 0x3fc91584 0x3fc91584
3fc91590: 0x00000000 0x3fc91598 0xffffffff 0x3fc91598 0x3fc91598 0x00000000 0x3fc915ac 0xffffffff
3fc915b0: 0x3fc915ac 0x3fc915ac 0x00000000 0x3fc915c0 0xffffffff 0x3fc915c0 0x3fc915c0 0x00000000
3fc915d0: 0x3fc915d4 0xffffffff 0x3fc915d4 0x3fc915d4 0x00000000 0x3fc915e8 0xffffffff 0x3fc915e8
3fc915f0: 0x3fc915e8 0x00000000 0x3fc915fc 0xffffffff 0x3fc915fc 0x3fc915fc 0x00000000 0x3fc91610
3fc91610: 0xffffffff 0x3fc91610 0x3fc91610 0x00000000 0x3fc91624 0xffffffff 0x3fc91624 0x3fc91624
3fc91630: 0x00000000 0x3fc91638 0xffffffff 0x3fc91638 0x3fc91638 0x00000000 0x3fc9164c 0xffffffff
3fc91650: 0x3fc9164c 0x3fc9164c 0x00000000 0x3fc91660 0xffffffff 0x3fc91660 0x3fc91660 0x00000000
3fc91670: 0x3fc91674 0xffffffff 0x3fc91674 0x3fc91674 0x00000000 0x3fc91688 0xffffffff 0x3fc91688
3fc91690: 0x3fc91688 0x00000000 0x3fc9169c 0xffffffff 0x3fc9169c 0x3fc9169c 0x00000000 0x3fc916b0
3fc916b0: 0xffffffff 0x3fc916b0 0x3fc916b0 0x00000000 0x3fc916c4 0xffffffff 0x3fc916c4 0x3fc916c4
3fc916d0: 0x00000000 0x3fc916d8 0xffffffff 0x3fc916d8 0x3fc916d8 0x00000004 0x3fc916ec 0xffffffff
3fc916f0: 0x3fcbf214 0x3fc9f2b0 0x00000000 0x3fc91700 0xffffffff 0x3fc91700 0x3fc91700 0x00000000
3fc91710: 0x3fc91714 0xffffffff 0x3fc91714 0x3fc91714 0x00000009 0x3fc91728 0xffffffff 0x3fcba72c
3fc91730: 0x3fc9dd44 0x00000000 0x3fc9173c 0xffffffff 0x3fc9173c 0x3fc9173c 0x00000000 0x3fc91748
3fc91750: 0x00000000 0x00000000 0x00000000 0x3fc91760 0xffffffff 0x3fc91760 0x3fc91760 0x00000000
3fc91770: 0x3fc91774 0xffffffff 0x3fc91774 0x3fc91774 0x00000001 0x00000001 0x00000000 0x0001ffff
3fc91790: 0x00000000 0x00000000 0x00000000 0x00000000 0x3fc9179c 0x00000000 0x00000000 0x00000000
3fc917b0: 0x3fc917b4 0xffffffff 0x3fc917b4 0x3fc917b4 0x00000000 0x3fc917c8 0xffffffff 0x3fc917c8
3fc917d0: 0x3fc917c8 0x00000001 0x00000001 0x00000000 0x0001ffff 0x00000000 0x00000000 0x00000000
但是中断处理只是发送了一个消息,没有其他处理,怎么会导致timeout出错?
ES32C3 - Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: ES32C3 - Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
你看下这个文档:https://docs.espressif.com/projects/esp ... /wdts.html
另外,需要看下你 MC_pub 里的实现。你可以试着把 CONFIG_ESP_INT_WDT 放大看看情况。
另外,需要看下你 MC_pub 里的实现。你可以试着把 CONFIG_ESP_INT_WDT 放大看看情况。
Who is online
Users browsing this forum: No registered users and 48 guests