You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom hardware but same pinout as the Adafruit ESP32-Feather
Hardware Configuration
USB on UART0 for programming/debugging
Version
v2.0.3
IDE Name
PlatformIO
Operating System
Win10
Flash frequency
? default
PSRAM enabled
no
Upload speed
460800 (default)
Description
This is an error I've been ignoring for a long time but finally investigated and isolated. When "CORE_DEBUG_LEVEL=5", I see a corrupt entry in the startup messages in the output terminal. I thought it was an issue with my code, but I traced it down to this Arduino library: https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-cpu.c#L214
Basically setCpuFrequencyMhz() contains a debug message stating what frequency is set. However it prints while the CPU frequency is changing, which causes trash to print to UART 0.
Possible fixes:
Move the debug message after the frequency switch.
I moved log_d("%s: %u / %u = %u Mhz, APB: %u Hz", (conf.source == RTC_CPU_FREQ_SRC_PLL)?"PLL":((conf.source == RTC_CPU_FREQ_SRC_APLL)?"APLL":((conf.source == RTC_CPU_FREQ_SRC_XTAL)?"XTAL":"8M")), conf.source_freq_mhz, conf.div, conf.freq_mhz, apb); to the end of the function setCpuFrequencyMhz() and the message appears to print properly.
Wait for debug message to finish sending (Flush UART 0) before continuing.
Sketch
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.3/platform-espressif32-2.0.3.zip
I verified the issue exists in the latest master. See https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-cpu.c#L214.
_________________________________
#include"Arduino.h"voidsetup() {
log_d("setup()");
}
voidloop() {
Serial.println("Hello World");
delay(1000);
}
Board
ESP32-WROOM-32UE
Device Description
Custom hardware but same pinout as the Adafruit ESP32-Feather
Hardware Configuration
USB on UART0 for programming/debugging
Version
v2.0.3
IDE Name
PlatformIO
Operating System
Win10
Flash frequency
? default
PSRAM enabled
no
Upload speed
460800 (default)
Description
This is an error I've been ignoring for a long time but finally investigated and isolated. When "CORE_DEBUG_LEVEL=5", I see a corrupt entry in the startup messages in the output terminal. I thought it was an issue with my code, but I traced it down to this Arduino library:
https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-cpu.c#L214
Basically setCpuFrequencyMhz() contains a debug message stating what frequency is set. However it prints while the CPU frequency is changing, which causes trash to print to UART 0.
Possible fixes:
Move the debug message after the frequency switch.
I moved
log_d("%s: %u / %u = %u Mhz, APB: %u Hz", (conf.source == RTC_CPU_FREQ_SRC_PLL)?"PLL":((conf.source == RTC_CPU_FREQ_SRC_APLL)?"APLL":((conf.source == RTC_CPU_FREQ_SRC_XTAL)?"XTAL":"8M")), conf.source_freq_mhz, conf.div, conf.freq_mhz, apb);
to the end of the function setCpuFrequencyMhz() and the message appears to print properly.Wait for debug message to finish sending (Flush UART 0) before continuing.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: