• 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

What does the "ets_printf()" do?

Q&A Forum › Category: ESP32 › What does the "ets_printf()" do?
0 Vote Up Vote Down
Jacque Wilson asked 2 years ago

Hello, can you explain what it means “isr safe print statement ets_printf()”? I used this statement (posted in the comments) to fix my ESP32 in the following program from having a fatal error.  It works great but I can’t seem to find any info on it.     https://randomnerdtutorials.com/esp32-pir-motion-sensor-interrupts-timers/

Question Tags: C++, Interrupts, Programing
4 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
I don’t know much about it in detail.
Basically, it is a safe way to print stuff to the serial monitor without interfering with interrupts.
“printf() uses the FreeRTOS functions which are not available inside the ISR
ets_printf() interacts directly with the uart”
I didn’t find more information about it.
Regards,
Sara

0 Vote Up Vote Down
Jacque Wilson answered 2 years ago

🙂 Thanks for the response! Same here! I guess I will just take it that it “works!” LOL 🙂 
 

0 Vote Up Vote Down
Jacque Wilson answered 2 years ago

🙂 Thanks for the response! Same here! I guess I will just take it that it “works!” LOL 🙂 
 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

I’ll close this issue.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.