Skip to content

Node CMU 8266 Not running setup or loop after Deep Sleep #9204

Open
@Aggroid

Description

@Aggroid

Basic Infos

  • This issue complies with the issue POLICY doc.
  • I have read the documentation at readthedocs and the issue is not addressed there.
  • I have tested that the issue is present in current master branch (aka latest git).
  • I have searched the issue tracker for a similar issue.
  • If there is a stack dump, I have decoded it.
  • I have filled out all fields below.

Platform

  • Hardware: [ESP-12E]
  • Core Version: [latest git hash or date]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows]

Settings in IDE

  • Module: [Generic ESP8266 Module]

Problem Description

Hey guys, I'm new to this world so please excuse me If I'm asking dumb question. I tried to find a solution but here I am here asking :).

I'm using Node MCU 8266 L0L1n ESP-12E Module type and I'm trying to put it into Deep Sleep. Now I don't have anything connected to the board.

Simply only RST to D0 since that's what I was able to read. I need to connect it so it will reset the board after the time of deep sleep.

My code is really basic :

void setup () {
Serial.begin(74880);
delay(1000);
pinMode(LED_BUILTIN, OUTPUT);

Serial.println("Im awake");
digitalWrite(LED_BUILTIN, HIGH);
delay(3000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
Serial.println("im sleeping");
u32 SLEEP = 30E6;
ESP.deepSleep(SLEEP, WAKE_RF_DISABLED);
}

void loop(){}

So the first time it works nice I can see everything in the serial consoled and also the board blue lamp turns on and off. After that it's printing " I'm sleeping " and after 30 seconds the board indicates restart but the console is showing

Debug Messages

ets Jan 8 2013, rst cause:2, boot mode:(3,6)

After that nothing happens.

If I restart manually from the RST button it does the same. It works 1 time before it goes to sleep.

So I read a lot and this rst cause:2, boot mode:(3,6) shows that it's getting out of deep sleep. Atleast of what I was able to find but why it's not executing setup() again and continue doing that ?

Can anyone give me a hand? I have 3 boards and all 3 does the same as above ^. Is there any other way to put this board in deep sleep mode for power consuming?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions