ESP-IDF VSC Extension, set upload baud rate

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

ESP-IDF VSC Extension, set upload baud rate

Postby username » Fri Sep 11, 2020 5:01 pm

When flashing the device the default baud rate is 115200. I want to change it to 1152000.
I press F1 then select ESP-IDF- Device Configuration. From there i select Baud Rate, and enter in 1152000.
This does not change the upload rate, nor does it change the monitor baud rate to 1152000, so what does this setting do?

Also, can you guys please change the color scheme for IDF menuconfig, that White background with light gray text is the worst colors to choose.

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

Re: ESP-IDF VSC Extension, set upload baud rate

Postby ESP_Sprite » Sun Sep 13, 2020 8:35 am

1152000 is not a standard baudrate; possibly your OS or serial driver doesn't like it. Perhaps try 1000000, as it's a bit more standard.

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: ESP-IDF VSC Extension, set upload baud rate

Postby ESP_krzychb » Sun Sep 13, 2020 2:03 pm

It looks like a bug. In the meantime I was able to change the rate by adding extra entry in "settings.json":
change-upload-baud-rate.png
change-upload-baud-rate.png (77.05 KiB) Viewed 15736 times

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: ESP-IDF VSC Extension, set upload baud rate

Postby username » Sun Sep 13, 2020 2:46 pm

Thank you that worked. On the "official" ESP32 modules I have used 1152000 works. On others it's to fast.

User avatar
ESP_Soumesh
Posts: 19
Joined: Tue Jul 09, 2019 2:21 pm

Re: ESP-IDF VSC Extension, set upload baud rate

Postby ESP_Soumesh » Wed Sep 23, 2020 7:01 am

username wrote:
Fri Sep 11, 2020 5:01 pm
Also, can you guys please change the color scheme for IDF menuconfig, that White background with light gray text is the worst colors to choose.
This is a bug caused from vs code side due to certain behaviours change, we have a fix and will release this ASAP.
username wrote:
Fri Sep 11, 2020 5:01 pm
I press F1 then select ESP-IDF- Device Configuration. From there i select Baud Rate, and enter in 1152000.
This does not change the upload rate, nor does it change the monitor baud rate to 1152000, so what does this setting do?
Thanks for reporting this bug, we have found the root cause and are working towards a fix, will also make this available ASAP.

Update: The baudrate bug is fixed and released in v0.5.0

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: ESP-IDF VSC Extension, set upload baud rate

Postby username » Wed Sep 23, 2020 12:38 pm

Thanks for the update. There is another bug. After you have flashed the part, and open the serial terminal. Make some changes to your code, recompile, and go to flash again it cant because the serial terminal is still open. When you flash, it should first check if the terminal is open, close it, then flash and re-connect again. This is what PlatformIO does, which is super nice.

User avatar
ESP_Soumesh
Posts: 19
Joined: Tue Jul 09, 2019 2:21 pm

Re: ESP-IDF VSC Extension, set upload baud rate

Postby ESP_Soumesh » Tue Sep 29, 2020 7:48 am

username wrote:
Wed Sep 23, 2020 12:38 pm
Thanks for the update. There is another bug. After you have flashed the part, and open the serial terminal. Make some changes to your code, recompile, and go to flash again it cant because the serial terminal is still open. When you flash, it should first check if the terminal is open, close it, then flash and re-connect again. This is what PlatformIO does, which is super nice.
This is not a bug, but thanks for the feature/behaviours request, we have added this to our pipeline and will be working on this and release this, you can track the further development on this here: https://github.com/espressif/vscode-esp ... issues/182

User avatar
ESP_Soumesh
Posts: 19
Joined: Tue Jul 09, 2019 2:21 pm

Re: ESP-IDF VSC Extension, set upload baud rate

Postby ESP_Soumesh » Tue Sep 29, 2020 5:24 pm

ESP_Soumesh wrote:
Tue Sep 29, 2020 7:48 am
username wrote:
Wed Sep 23, 2020 12:38 pm
Thanks for the update. There is another bug. After you have flashed the part, and open the serial terminal. Make some changes to your code, recompile, and go to flash again it cant because the serial terminal is still open. When you flash, it should first check if the terminal is open, close it, then flash and re-connect again. This is what PlatformIO does, which is super nice.
This is not a bug, but thanks for the feature/behaviours request, we have added this to our pipeline and will be working on this and release this, you can track the further development on this here: https://github.com/espressif/vscode-esp ... issues/182
After analysis we found that this feature is already there and if you're using idf monitor inside vscode and trigger flash from vscode it will close the monitor and then only start flashing...

If this is not working please open a bug report here: https://github.com/espressif/vscode-esp ... new/choose

username
Posts: 538
Joined: Thu May 03, 2018 1:18 pm

Re: ESP-IDF VSC Extension, set upload baud rate

Postby username » Tue Sep 29, 2020 5:28 pm

After analysis we found that this feature is already there and if you're using idf monitor inside vscode and trigger flash from vscode it will close the monitor and then only start flashing...
But it does not reopen the monitor after the flash.

User avatar
ESP_Soumesh
Posts: 19
Joined: Tue Jul 09, 2019 2:21 pm

Re: ESP-IDF VSC Extension, set upload baud rate

Postby ESP_Soumesh » Wed Sep 30, 2020 7:35 am

username wrote:
Tue Sep 29, 2020 5:28 pm
But it does not reopen the monitor after the flash.
Thats because we don't store the state of the monitor and flash should only flash and not open monitor, if you want please use the Build, Flash and start a monitor on your device command, which trigger build -> flash -> monitor

More info here: https://github.com/espressif/vscode-esp ... e-commands

Who is online

Users browsing this forum: No registered users and 4 guests