• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 course module 3 unit 2 no function output.

Q&A Forum › Category: ESP32 › ESP32 course module 3 unit 2 no function output.
0 Vote Up Vote Down
C Bruggeman asked 5 years ago

Hi,

rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:808
load:0x40078000,len:6084
load:0x40080000,len:6696
entry 0x400802e4
Boot   ets Jun 8 2016 00:22:57

is all the output I get, every 5 seconds, with the last line (ets Jun 8 2016 00:22:57) first.
the code is the standard from Timerwakeup esp32 example.
I can only think of the code being wrong. Maybe its usage has changed?
I just started this week with the course, hence I updated all the stuff.

So the question is: why is there no Serial.Println output except for the “Boot “…? Is it overwritten with empty data?

 

I am using a (lookalike of) DOIT ESP32 DEVKITV1

5 Answers
0 Vote Up Vote Down
C Bruggeman answered 5 years ago

rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:808
load:0x40078000,len:6084
load:0x40080000,len:6696
entry 0x400802e4
Boot number: 2
Wakeup caused by timer
Setup ESP32 to sleep for every 5 Seconds
Going to sleep now
ets Jun 8 2016 00:22:57

after I ditched the example and used your code 😉

0 Vote Up Vote Down
C Bruggeman answered 5 years ago

The same thing happened with Module 3, unit 4: wake up by ext.
I see no difference between both codes( example and yours in the unit) but the example prints “Boot  ” and nothing else within the function call. While your code works flawless.

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello C. Bruggeman, basically the official deepsleep examples that come with the ESP32 doesn’t have any delay() function. Those deepsleep examples execute so quickly that the ESP32 doesn’t have time to print any message in the serial monitor and it goes to deepsleep instantly (so you don’t see anything in the serial monitor).

I’ve added to all deepsleep examples a 1 second delay: https://github.com/RuiSantosdotme/ESP32-Course/tree/master/code/DeepSleep

For example, in the External Wake Up take a look at line 76: https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/DeepSleep/ExternalWakeUp/ExternalWakeUp.ino

delay(1000);

I hope that solves your problem,

Regards,

Rui

0 Vote Up Vote Down
C Bruggeman answered 5 years ago

Thank you.

 

 

 

 

I know that the pc just displays what is sent over the serial, not relevant here.

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

I’m glad it worked. Thanks for letting me know!

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.