-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Garbage on HardwareSerial ESP32S2 at 3.0.4 #10117
Comments
Code does not match the output. This looks like you have a line where you are printing a String, but the function expects a char* (or vice-versa). |
With latest refactor of the hardware serial speed settings, there are speeds possible way of the expected. We (Tasmota) have seen 115942 instead of 115200 with an ESP32. |
This is correct. We changed UART to use TICK REF as clock source, instead of APB. DFS would translate into energy efficiency and low power. Today we had an internal talk about it. In such case we will roll back the UART source clock change just for the ESP32 and ESP32-S2. We would also move forward with low power DFS (Dynamic Frequency Scaling) only for the ESP32-C3, ESP32-S3, ESP32-C6, ESP32-H2 and ESP32-P4 (future). this approach would also solve this issue @olagt @Jason2866 and @lbernstone - do you have any opinion about the above? |
@SuGlider Well, do what is necessary to get DFS to work. |
Mainly most peripherals, and mainly UART, shall use a source clock that doesn't change when APB frequency changes, otherwise, it will not allow the SoC to reduce automatically the CPU frequency in order to reduce power consumption. |
@SuGlider A while ago tried changing MCU clock with the ESP32, resulted in sometimes! wifi issues. Maybe a good idea not to do DFS with the ESP32 / ESP32-S2? |
I have a similar problem on the (rather old) TTGO LoRa32 v1 board. Very simple sketch
Works fine e.g. on TTGO LoRa32 v2.1.6 or T-Beam 1.0/1.1, but prints garbage on the older LoRa32 v1 board. (If I set the terminal on the PC to 74880 baud instead of 115200 baud I get the Hello world instead of the garbage) Edit: esptool chip_id on TTGO LoRa32 v1 board: Working boards: So this seems to be related to the clock frequency. Indeed building for the heltec_wifi_lora_32 board instead of ttgo-lora32-v1 board fixes the problem (even if it is not a Heltec board)... |
26MHz crystal has been deprecated. This is known, and AFAIK will not be fixed. You will have to stick with old versions of arduino or roll your own libraries. |
adding |
Board
ESP32S2
Device Description
S2 Mini
Hardware Configuration
PIN RX 18 , TX 16
Version
v3.0.4
IDE Name
Arduino IDE
Operating System
WIN 10
Flash frequency
80
PSRAM enabled
yes
Upload speed
940000
Description
Garbage on HardwareSerial port 3.0.4 , whereas 3.0.0 works fine.
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: