ESP-IDF VSC Extension, set upload baud rate
ESP-IDF VSC Extension, set upload baud rate
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.
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.
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP-IDF VSC Extension, set upload baud rate
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.
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: ESP-IDF VSC Extension, set upload baud rate
It looks like a bug. In the meantime I was able to change the rate by adding extra entry in "settings.json":
Re: ESP-IDF VSC Extension, set upload baud rate
Thank you that worked. On the "official" ESP32 modules I have used 1152000 works. On others it's to fast.
- ESP_Soumesh
- Posts: 19
- Joined: Tue Jul 09, 2019 2:21 pm
Re: ESP-IDF VSC Extension, set upload baud rate
This is a bug caused from vs code side due to certain behaviours change, we have a fix and will release this ASAP.
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
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.
- ESP_Soumesh
- Posts: 19
- Joined: Tue Jul 09, 2019 2:21 pm
Re: ESP-IDF VSC Extension, set upload baud rate
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/182username wrote: ↑Wed Sep 23, 2020 12:38 pmThanks 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.
- ESP_Soumesh
- Posts: 19
- Joined: Tue Jul 09, 2019 2:21 pm
Re: ESP-IDF VSC Extension, set upload baud rate
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...ESP_Soumesh wrote: ↑Tue Sep 29, 2020 7:48 amThis 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/182username wrote: ↑Wed Sep 23, 2020 12:38 pmThanks 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.
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
But it does not reopen the monitor after the flash.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...
- ESP_Soumesh
- Posts: 19
- Joined: Tue Jul 09, 2019 2:21 pm
Re: ESP-IDF VSC Extension, set upload baud rate
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 38 guests