Hi,
I followed the official tutorial to start with the ESP32. Everything is working except the "printf" function. I have an ESP32 from Sparkfun, and any printf results in gibberish text in terminal. I tried changing the baud rate to different values, whether through "make menuconfig", or in the terminal by using the command "stty", but nothing changed. My laptop is a Mac. I also tried to connect using (screen ... <baud_rate>) but no success.
I have a another board (no Sparkfun), and it works fine. So, my configurations seem to be fine.
Any ideas?
Please let me know if you require any debugging info.
gibberish text in terminal
-
- Posts: 9761
- Joined: Thu Nov 26, 2015 4:08 am
Re: gibberish text in terminal
Check 'make menuconfig', under components -> esp32 -> Main XTAL Frequency. The Sparkfun thing uses a 26MHz crystal, so select that instead of the 40MHz one.
Re: gibberish text in terminal
You solved it!ESP_Sprite wrote:Check 'make menuconfig', under components -> esp32 -> Main XTAL Frequency. The Sparkfun thing uses a 26MHz crystal, so select that instead of the 40MHz one.
I have spent hours on this, thinking it has to do with the baud rate or with the drivers... I tested on 2 laptops, Mac & Win... Read all doc (Sparkfun and others). I am not sure how I was supposed to know about that difference.
Thanks a lot
-
- Posts: 9761
- Joined: Thu Nov 26, 2015 4:08 am
Re: gibberish text in terminal
I can imagine that's a pitfall... we used to have 'autodetect' as a standard, but changed this to 40MHz because 'autodetect' seems to sometimes not work. If that happens in production, you have an unusable ESP32, hence the switch. Unfortunately, because this change is pretty new, there aren't too many mentions of it yet.
Who is online
Users browsing this forum: No registered users and 78 guests