Page 1 of 1

Monitor baud rate

Posted: Tue Sep 05, 2017 8:04 pm
by JoaoLopesF
Hi, I tried change baud rate of monitor to 230400 and make and flash. But appears that monitor still using the default 115200 speed.
Please: How I do for change the monitor for more speed ?

Regards
Joao

Re: Monitor baud rate

Posted: Wed Sep 06, 2017 1:10 am
by ESP_Sprite
You will have to change the UART speed in your program as well; something you iirc can only do runtime. Something like uart_set_baudrate(UART_NUM_0, 230400) should do it.

Re: Monitor baud rate

Posted: Wed Sep 06, 2017 2:50 am
by ESP_igrr
There is also a Kconfig option for UART baud rate, see http://esp-idf.readthedocs.io/en/latest ... t-baudrate. You can change it using 'make menuconfig'.

Re: Monitor baud rate

Posted: Wed Sep 06, 2017 3:59 pm
by JoaoLopesF
Thanks a lot ;-)
Regards
Joao

Re: Monitor baud rate

Posted: Wed Sep 06, 2017 7:43 pm
by JoaoLopesF
Hi,

Thanks Guys, Is working now!

But In begin is recevied a lot of noise, I think that codes of SDK is still in 115200 until execute main

how about change default of framework to 230400 ? This board is fast to still in 115200 ...

Regards

Joao Lopes

Re: Monitor baud rate

Posted: Wed Sep 06, 2017 10:22 pm
by ESP_Angus
JoaoLopesF wrote: But In begin is recevied a lot of noise, I think that codes of SDK is still in 115200 until execute main
The ROM bootloader code will always output at 115200, before it loads the second stage bootloader image from flash. From then on, serial output will use the configured baud rate.

Unfortunately we can't change this very early baud rate, as it's hardcoded in ROM. If you pull GPIO15 (MTDO) low on reset then it will disable this ROM output entirely, though.
JoaoLopesF wrote: how about change default of framework to 230400 ? This board is fast to still in 115200 ...
A lot of serial programs default to 115200, so it's easier for most people if we default to this value.

115200bps is slow if you need to transfer a lot of data, but for non-verbose logging it's not usually a bottleneck (especially given the 128 byte hardware FIFO).

Re: Monitor baud rate

Posted: Fri Sep 08, 2017 3:41 pm
by JoaoLopesF
Thanks ESP_Angus

Ok, I agree that

Regards

Joao