Chat freely about anything...

User avatar
By martinayotte
#21460
Cosmic Mac wrote:Only GPIO0 is important at boot time.
You can connect the PIR to GPIO2.
Have a look at https://github.com/CosmicMac/ESP8266-trap


Wrong ! https://github.com/esp8266/esp8266-wiki ... ot-Process

Both GPIO0 and GPIO2 needs to be pulled-up ! Never leaves pins floating, even if it worked for you !
User avatar
By Stoney
#21508
lethe wrote:The serial bootloader resides on an internal ROM on the ESP. So far, I have not seen any documentation on if or how one would be able to overwrite it. There is a strong possibility, that it's not technically possible to replace the serial bootloader and even if you could, I doubt there would be enough room for a full wifi & IP stack to implement a network bootloader on-chip.
What you can do however is to chain-load a user program from flash to act as secondary bootloader to allow you to flash your ESP via network. However this will not solve your GPIO0/2/15 issues.


ah, ok, I am thick, I had seen mention of alternative bootloaders mentioned like http://richard.burtons.org/2015/05/18/rboot-a-new-boot-loader-for-esp8266/ and thought the bootloader must reside in the bottom of flash and simply not (normally) allow itself to be overwritten.
So we are stuck with whatever espressif provides at this point.
oh well.
User avatar
By Cosmic Mac
#21517
martinayotte wrote:
Cosmic Mac wrote:Only GPIO0 is important at boot time.
You can connect the PIR to GPIO2.
Have a look at https://github.com/CosmicMac/ESP8266-trap


Wrong ! https://github.com/esp8266/esp8266-wiki ... ot-Process

Both GPIO0 and GPIO2 needs to be pulled-up ! Never leaves pins floating, even if it worked for you !


Really?
viewtopic.php?f=13&t=3729
Now, I don't know who to believe :(
User avatar
By martinayotte
#21694 Just read my latest reply viewtopic.php?f=13&t=3729#p21674

Mainly, there is a distinction between following specs and rules or following others testimonies says "it works for me".
There are some basic rules and best practices known since decades, and when people doesn't follow them, that is there choice.