Page 1 of 1
ESP-IDF VSC Extension, set upload baud rate
Posted: Fri Sep 11, 2020 5:01 pm
by username
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.
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Sun Sep 13, 2020 8:35 am
by ESP_Sprite
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.
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Sun Sep 13, 2020 2:03 pm
by ESP_krzychb
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 (77.05 KiB) Viewed 15660 times
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Sun Sep 13, 2020 2:46 pm
by username
Thank you that worked. On the "official" ESP32 modules I have used 1152000 works. On others it's to fast.
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Wed Sep 23, 2020 7:01 am
by ESP_Soumesh
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
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Wed Sep 23, 2020 12:38 pm
by username
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.
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Tue Sep 29, 2020 7:48 am
by ESP_Soumesh
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
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Tue Sep 29, 2020 5:24 pm
by ESP_Soumesh
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
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Tue Sep 29, 2020 5:28 pm
by username
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.
Re: ESP-IDF VSC Extension, set upload baud rate
Posted: Wed Sep 30, 2020 7:35 am
by ESP_Soumesh
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