-->
Page 1 of 1

GPIO12 is high on boot

PostPosted: Sat Apr 08, 2017 11:17 am
by diffstorm
Hello All,

I would like to ask about my problem.
I have used the GPIO12 as output and driving a mosfet using the pin.
The problem is GPIO12 is logic high for 500 ms on boot. It creates a pulse on boot every time.

I have tried to add code on Setup() section to set it to low on boot but it still behaves the same.

Code: Select allpinMode(12, OUTPUT);
digitalWrite(12, 0);


I think the problem is in SDK level, so it takes about 500 ms to reach in Setup() in Arduino sketch.

What can I do to figure it out?

My config:
QIO, 40Mhz, 160Mhz, 1MB Flash

Thanks in advance.

Re: GPIO12 is high on boot

PostPosted: Sat Apr 08, 2017 12:57 pm
by piersfinlayson
diffstorm wrote:Hello All,

I would like to ask about my problem.
I have used the GPIO12 as output and driving a mosfet using the pin.
The problem is GPIO12 is logic high for 500 ms on boot. It creates a pulse on boot every time.

I have tried to add code on Setup() section to set it to low on boot but it still behaves the same.

Code: Select allpinMode(12, OUTPUT);
digitalWrite(12, 0);


I think the problem is in SDK level, so it takes about 500 ms to reach in Setup() in Arduino sketch.

What can I do to figure it out?

My config:
QIO, 40Mhz, 160Mhz, 1MB Flash

Thanks in advance.


Thread about this here: viewtopic.php?f=13&t=951

Re: GPIO12 is high on boot

PostPosted: Sat Apr 08, 2017 1:06 pm
by diffstorm
Thank you, thus there is no chance to disable it programmatically. So bad because I cannot change the PCB already manufactured.