gibberish text in terminal

mhm_nab
Posts: 3
Joined: Sat Sep 09, 2017 8:36 am

gibberish text in terminal

Postby mhm_nab » Sat Sep 09, 2017 8:41 am

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.

ESP_Sprite
Posts: 9761
Joined: Thu Nov 26, 2015 4:08 am

Re: gibberish text in terminal

Postby ESP_Sprite » Sun Sep 10, 2017 6:28 am

Check 'make menuconfig', under components -> esp32 -> Main XTAL Frequency. The Sparkfun thing uses a 26MHz crystal, so select that instead of the 40MHz one.

mhm_nab
Posts: 3
Joined: Sat Sep 09, 2017 8:36 am

Re: gibberish text in terminal

Postby mhm_nab » Sun Sep 10, 2017 7:07 am

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.
You solved it!

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

ESP_Sprite
Posts: 9761
Joined: Thu Nov 26, 2015 4:08 am

Re: gibberish text in terminal

Postby ESP_Sprite » Mon Sep 11, 2017 3:07 am

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: Bing [Bot] and 108 guests