Everytime the chips resets, we get the reason and the next boot mode.
ets Jan 8 2013,rst cause:XXX, boot mode:(YYY,ZZZ)
For XXX we can check the meaning here.
For YYY and ZZZ I am not sure but I know it has something to do with this. I think YYY stands for abc where a = MTDO, b = GPIO0 and c = GPIO.
For my ESP12E I am getting boot modes like boot mode:(1,7), thus after the reset, the code doesn't start again. It just "hangs there" forever.
I feel that it is starting the UART routine, because 1 = 001, meaning GPIO2 is at HIGH and the others are at LOW.
But maybe what I want, for it to start the setup() and loop() routines all over again is to activate the "SPI" by setting the MTDO pin to LOW and the other two to HIGH.
Can someone explain me better what are these 3 boot modes and how can I interpret the boot mode?