Increase monitor UART speed

StridingDragon
Posts: 46
Joined: Fri Aug 02, 2019 11:59 pm

Increase monitor UART speed

Postby StridingDragon » Tue Dec 20, 2022 12:40 am

I'm trying to increase the UART speed for the monitor logging and for the most part I've been successful at it. However, there is a small first stage of the initial bootloader that still spits out only garbled symbols. It switches to proper text output from the second stage forward, but I could not get that initial part to work correctly.

What steps are necessary, meaning, which settings, in what places do I have to adjust to correctly set my speed from 115200 to 230400 baud or faster?

chegewara
Posts: 2306
Joined: Wed Jun 14, 2017 9:00 pm

Re: Increase monitor UART speed

Postby chegewara » Tue Dec 20, 2022 2:13 am

There is only one thing you can do:
- ignore it
Its from 1st stage bootloader and cant be controlled any way. The speed is hardcoded.

StridingDragon
Posts: 46
Joined: Fri Aug 02, 2019 11:59 pm

Re: Increase monitor UART speed

Postby StridingDragon » Tue Dec 20, 2022 4:15 am

Hard-coded in the ROM, or hard-coded in the library code? I have no problem with modifying a component to make this work if that's what it takes.

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

Re: Increase monitor UART speed

Postby ESP_igrr » Tue Dec 20, 2022 6:54 am

Depending on the chip you are using, there may be an eFuse to disable ROM bootloader output entirely.

As for the baud rate itself, it is indeed fixed in the ROM bootloader. Since that's mask ROM that is part of the chip, the baud rate can't be changed.

StridingDragon
Posts: 46
Joined: Fri Aug 02, 2019 11:59 pm

Re: Increase monitor UART speed

Postby StridingDragon » Tue Dec 20, 2022 6:04 pm

Thanks for the heads-up. Sounds a bit like a design flaw. Perhaps something to address in future chip revisions? :mrgreen:

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

Re: Increase monitor UART speed

Postby ESP_igrr » Tue Dec 20, 2022 9:00 pm

Could you please explain, what specifically is the problem you are facing with the garbage output from ROM (other than cosmetic issue) and why disabling ROM bootloader output is not an option for your use case?

StridingDragon
Posts: 46
Joined: Fri Aug 02, 2019 11:59 pm

Re: Increase monitor UART speed

Postby StridingDragon » Tue Dec 20, 2022 10:04 pm

You must have misunderstood. My apologies for not being clear. I did not say that disabling ROM bootloader output is not an option for me and neither is the garbage output a problem—other than that it looks like a mess.
What I was trying to say, though, is that I wonder if there isn't a more elegant and future-proof way for something like this by not hardcoding a transfer rate, but to pull it from a preference variable instead that could be flashed. Just as a well-meaning suggestion…

Who is online

Users browsing this forum: Bing [Bot] and 390 guests