GPIO 36 abnormal behaviour

seopyoon
Posts: 23
Joined: Thu Dec 08, 2016 8:25 am

GPIO 36 abnormal behaviour

Postby seopyoon » Tue Mar 27, 2018 6:50 am

In my app_main(), I initialise gpio where I install gpio interrupts on GPIOs 36, 39, 34. (Pulled up)

What I observe is that around tick 1392-1394 (of five restarts), I get an interrupt high on pin 36. This happens continuously every time I start the application.

When I read the log, it is right after esp_wifi_start() is called.
Here's some log around it.

Code: Select all

I (1316) SYSTEM: Connecting to: <SSID> // <PASSPHRASE>
D (1322) RTC_MODULE: Wi-Fi takes adc2 lock.
D (1326) phy_init: loading PHY init data from application binary
D (1332) nvs: nvs_open_from_partition phy 0
D (1337) nvs: nvs_get cal_version 4
D (1340) nvs: nvs_get_str_or_blob cal_mac
D (1345) nvs: nvs_get_str_or_blob cal_data
D (1356) nvs: nvs_close 5
I (1393) GPIO: GPIO[36] val: 1

I (1413) phy: phy_version: 383.0, 79a622c, Jan 30 2018, 15:38:06, 0, 0
I (1414) wifi: mode : sta (30:ae:a4:43:02:84)
D (1415) event: SYSTEM_EVENT_STA_START
I (1417) AWS: AWS IoT SDK Version 2.2.1-
Is there a reason behind the ESP system why that GPIO gets 'HIGH' around that part of the code?
Thanks.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: GPIO 36 abnormal behaviour

Postby WiFive » Tue Mar 27, 2018 7:28 am


seopyoon
Posts: 23
Joined: Thu Dec 08, 2016 8:25 am

Re: GPIO 36 abnormal behaviour

Postby seopyoon » Mon Apr 02, 2018 3:09 am

How could I resolve the issue if I already have the custom board. Ignore the first triggers? (Will there be this trigger for sure)
I am not using it as an ADC channel. I am only interested in digital HIGH/LOW.

Thanks.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: GPIO 36 abnormal behaviour

Postby ESP_igrr » Mon Apr 02, 2018 3:23 am

One option is to disable interrupt for this pin before starting WiFi, and re-enabling it afterwards.

seopyoon
Posts: 23
Joined: Thu Dec 08, 2016 8:25 am

Re: GPIO 36 abnormal behaviour

Postby seopyoon » Mon Apr 02, 2018 3:34 am

Okay. I will have to change the flow of the application, but if that ensures working app, I could do that.

Will there be a fix for this release anytime soon??

User avatar
urbanze
Posts: 301
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: GPIO 36 abnormal behaviour

Postby urbanze » Mon Apr 02, 2018 6:41 pm

ESP_igrr wrote:One option is to disable interrupt for this pin before starting WiFi, and re-enabling it afterwards.
I am facing this problem and I added your suggestion, however, the pin also generates interruptions sometimes when the client requests some WiFi data like html page, it seems that the consumption peak generates a noise in the pin. So it's not just when you turn on WiFi.

I'll also wait for this correction, will it come in the next official release?

Who is online

Users browsing this forum: Bing [Bot], kaxx1975 and 97 guests