Hi,
I have seen several examples of wake-stub code calling ets_printf in order to output some text (thus, before the app_main function is called, and before the board has fully booted). I presume the authors of such code read the output text from the "idf.py monitor" command, running on a PC or on a Mac.
However, while the ESP32 (ESP32s3 in my case) is in deep-sleep, and also while running the wake stub, the USB MacOS device is not available, and "idf.py monitor" is disconnected from the board.
So, how to read that output text? Do I miss some basic element about this?
Many thanks for your help!
How to read ets_printf output from wake stub on a MacOS?
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: How to read ets_printf output from wake stub on a MacOS?
It's not easy to do with the usb-serial-jtag (you could add a delay in the wakestub to wait for macos to detect the usb device again, but that's kinda janky) but an external USB-serial chip/board on U0TXD should show the message.
Re: How to read ets_printf output from wake stub on a MacOS?
Many thanks!
Do you know if there is a watchdog active during the wake stub?
If I add a delay as you kindly suggest, I would like to make sure it does not trigger a watchdog reset or any other inconvenience.
If there is a watchdog, how long is the default delay, and what is this watchdog reference (register, ID, ...) if I want to extend it? (I have read the ESP32 tech ref and prog guide thoroughly without finding the answer).
Other question: my board (https://PowerFeather.dev) seems to connect USB to UART1, so I guess the printf goes to UART1 by default. How can I redirect printf to UART0? (FYI here is the schematics: https://forum.powerfeather.dev/d/10-sch ... -available)
Thank you again!
Do you know if there is a watchdog active during the wake stub?
If I add a delay as you kindly suggest, I would like to make sure it does not trigger a watchdog reset or any other inconvenience.
If there is a watchdog, how long is the default delay, and what is this watchdog reference (register, ID, ...) if I want to extend it? (I have read the ESP32 tech ref and prog guide thoroughly without finding the answer).
Other question: my board (https://PowerFeather.dev) seems to connect USB to UART1, so I guess the printf goes to UART1 by default. How can I redirect printf to UART0? (FYI here is the schematics: https://forum.powerfeather.dev/d/10-sch ... -available)
Thank you again!
Re: How to read ets_printf output from wake stub on a MacOS?
CONFIG_ESP_INT_WDT or CONFIG_BOOTLOADER_WDT_TIME_MS?
Re: How to read ets_printf output from wake stub on a MacOS?
Thank you so much!! I will try that!
(still interested for the other question! )
(still interested for the other question! )
Re: How to read ets_printf output from wake stub on a MacOS?
Eee CONFIG_ESP_CONSOLE_UART and CONFIG_ESP_CONSOLE_UART_NUM?
Re: How to read ets_printf output from wake stub on a MacOS?
Awesome, thank you again!
Re: How to read ets_printf output from wake stub on a MacOS?
There is a search feature in the Sdkconfig
Who is online
Users browsing this forum: No registered users and 73 guests