Monitor baud rate

JoaoLopesF
Posts: 59
Joined: Thu Aug 17, 2017 5:40 pm

Monitor baud rate

Postby JoaoLopesF » Tue Sep 05, 2017 8:04 pm

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

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

Re: Monitor baud rate

Postby ESP_Sprite » Wed Sep 06, 2017 1:10 am

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.

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: Monitor baud rate

Postby ESP_igrr » Wed Sep 06, 2017 2:50 am

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'.

JoaoLopesF
Posts: 59
Joined: Thu Aug 17, 2017 5:40 pm

Re: Monitor baud rate

Postby JoaoLopesF » Wed Sep 06, 2017 3:59 pm

Thanks a lot ;-)
Regards
Joao

JoaoLopesF
Posts: 59
Joined: Thu Aug 17, 2017 5:40 pm

Re: Monitor baud rate

Postby JoaoLopesF » Wed Sep 06, 2017 7:43 pm

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Monitor baud rate

Postby ESP_Angus » Wed Sep 06, 2017 10:22 pm

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).

JoaoLopesF
Posts: 59
Joined: Thu Aug 17, 2017 5:40 pm

Re: Monitor baud rate

Postby JoaoLopesF » Fri Sep 08, 2017 3:41 pm

Thanks ESP_Angus

Ok, I agree that

Regards

Joao

Who is online

Users browsing this forum: Jarizapo and 88 guests