Page 1 of 1

Changing baudrate of make monitor on esp32

Posted: Mon Oct 12, 2020 5:46 pm
by Alex Chen
I want to change the baudrate of the make monitor for esp32, but after I change it in the make menuconfig and then make flash and monitor the output I only see a bunch of scrambled characters. I tried many other baudrate as well, but only the default 115200bps will print out readable characters. Could anyone help me on this please?

This is the config I have changed:
Screenshot from 2020-10-12 13-44-56.png
Screenshot from 2020-10-12 13-44-56.png (43.2 KiB) Viewed 8131 times
and this is the make monitor output:
Screenshot from 2020-10-11 15-58-49.png
Screenshot from 2020-10-11 15-58-49.png (43.6 KiB) Viewed 8131 times
Thank you very much

Re: Changing baudrate of make monitor on esp32

Posted: Tue Oct 13, 2020 3:13 am
by ESP_Sprite
This only changes the baud rate on the PC side. You also need to change the baud rate accordingly on the ESP32 side.

Re: Changing baudrate of make monitor on esp32

Posted: Tue Oct 13, 2020 3:30 am
by Alex Chen
How do I change the baudrate on the esp32 side?

Re: Changing baudrate of make monitor on esp32

Posted: Tue Oct 13, 2020 6:41 am
by chegewara
2 things:
1) bootloader logs always are printed with 115200, so you will see garbage with different baudrate
2) you can use make monitor ESPBAUD=__baud__ command to change monitor baud rate, try it please

Re: Changing baudrate of make monitor on esp32

Posted: Wed Oct 14, 2020 1:40 am
by ESP_Sprite
chegewara wrote:
Tue Oct 13, 2020 6:41 am
2 things:
1) bootloader logs always are printed with 115200, so you will see garbage with different baudrate
2) you can use make monitor ESPBAUD=__baud__ command to change monitor baud rate, try it please

1 is correct, but 2 will only (again) change the PC baud rate. A correct answer is that you can configure it via menuconfig: Component config -> Common ESP-related -> UART console baud rate. Note you need to select 'Custom UART' under 'Channel for console output' before you can configure that.