Hello
I have an unusual problem. The issue is that the gpio_isr_handler_add function is setting incorrect interrupt conditions, or esp32 is checking them incorrectly
.
1.Initially I set NEGEDGE interrupt trigger for gpio 0,2,18.
0 and 18 worked fine but gpio 2 triggered on low state (LOW_LEVEL)
2.I set POSEDGE interrupt trigger for gpio 0,2,18.
0 and 18 worked fine but gpio 2 started on high state (HIGH_LEVEL)
3.I set NEGEDGE interrupt trigger for gpio 0,2,18.
0 and 18 worked fine but gpio 2 triggered on high state (HIGH_LEVEL)
4.I replaced the lines as below. I uncommented gpio2 because it was causing problems earlier Effect was that gpio18 was working fine (triggering with falling edge) and gpio0 was triggering with both edges. Gpio2 obviously disconnected and when I pressed gpio2 and gpio0 it triggered level.
Gpio22 has always worked correctly. Pull-ups on all gpio using resistors
Checking the status of the pins works, this is unlikely to be a physical fault.
Something is going off just how to trace it. I wrote an issue on github but so far no response.
There was a similar problem there but with triggering on both edges and in my case it triggers above that with levels
I don't know if it matters, but on this chip the serial communication doesn't work, i.e. messages at boot up are sent but commands from the program are not
esp32 esp-idf v4.2
I have an unusual problem. The issue is that the gpio_isr_handler_add function is setting incorrect interrupt conditions, or esp32 is checking them incorrectly
Code: C / C++
1.Initially I set NEGEDGE interrupt trigger for gpio 0,2,18.
0 and 18 worked fine but gpio 2 triggered on low state (LOW_LEVEL)
2.I set POSEDGE interrupt trigger for gpio 0,2,18.
0 and 18 worked fine but gpio 2 started on high state (HIGH_LEVEL)
3.I set NEGEDGE interrupt trigger for gpio 0,2,18.
0 and 18 worked fine but gpio 2 triggered on high state (HIGH_LEVEL)
4.I replaced the lines as below. I uncommented gpio2 because it was causing problems earlier
Code: C / C++
Gpio22 has always worked correctly. Pull-ups on all gpio using resistors
Checking the status of the pins works, this is unlikely to be a physical fault.
Something is going off just how to trace it. I wrote an issue on github but so far no response.
There was a similar problem there but with triggering on both edges and in my case it triggers above that with levels
I don't know if it matters, but on this chip the serial communication doesn't work, i.e. messages at boot up are sent but commands from the program are not
esp32 esp-idf v4.2