Notifications
Clear all

[Solved] esp8266 Deep sleep RST and code upload

7 Posts
3 Users
1 Likes
125 Views
Timo88
(@timo88)
Eminent Member
Joined: 6 months ago
Posts: 13
Topic starter  

I'm working on a simple ESP8266 project where I'll use Deep sleep to save power.
(12F dev board)
As I'm learning c++ on the fly, I need quite a bit of code uploads to get the code to work. 😉
On my breadboard, I now have to pull out the connection between GPIO16 and the RST pin for every code upload.
I do understand why this is, but is there a (hardware)  way around that (during development)?

Thank you, Timo


   
Quote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 4805
 

Hi Timo, what is the purpose of the connection between RST and GPIO16?

Here is a good source of info for 8266 LINK

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Will
 Will
(@will)
Famed Member
Joined: 2 years ago
Posts: 2326
 

Posted by: @timo88

On my breadboard, I now have to pull out the connection between GPIO16 and the RST pin for every code upload.
I do understand why this is, but is there a (hardware)  way around that (during development)?

How about putting in an NC (normally closed) button between the wire and GPIO16. Then, when you need to break the circuit just push the button.

 

Experience is what you get when you don't get what you want.


   
Ron reacted
ReplyQuote
Timo88
(@timo88)
Eminent Member
Joined: 6 months ago
Posts: 13
Topic starter  

@zander It resets the device after deep sleep right?


   
ReplyQuote
Timo88
(@timo88)
Eminent Member
Joined: 6 months ago
Posts: 13
Topic starter  

@will Yes, I think that's the easiest option.

The other option I thought of is to delay making gpio16 output for 1 second and use the reset button before upload, but I think your suggestion is better as I don't have to change the code for it, thank you. 🙂


   
ReplyQuote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 3 years ago
Posts: 4805
 

@timo88 Here is an Espressif document I found that might be of interest to you.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Timo88
(@timo88)
Eminent Member
Joined: 6 months ago
Posts: 13
Topic starter  

@zander Thank you 🙂


   
ReplyQuote