Can't change the baud rate for flashing the ESP32 in eclipse
Posted: Mon Nov 18, 2019 9:32 am
I have setup Eclipse for ESP-IDF according to the getting started guide.
everything working fine.
Only problem is I cant flash the device.
Please check the following output from eclipse.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/3] Performing build step for 'bootloader'
ninja: no work to do.
esptool.py -p COM5 -b 460800 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000
partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 blink.bin
esptool.py v2.9-dev
Serial port COM5
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
Adding "flash"'s dependency "all" to list of commands with default set of options.
Executing action: all (aliases: build)
Running ninja in directory e:\esp_ws\blink\build
Executing "ninja all"...
Executing action: flash
Running esptool.py in directory e:\esp_ws\blink\build
Executing "C:\espressif\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe C:\esp-idf\components/esptool_py/esptool/esptool.py -p COM5 -b 460800 --after hard_reset write_flash @flash_project_args"...
esptool.py failed with exit code 2
------------------------------------------------------------------------------------------------------------------------------------------------------------------
according to above out put the flashing baud rate is 460800.
I need to change it to 115200.
But I can't find where to change
Please help !!!
everything working fine.
Only problem is I cant flash the device.
Please check the following output from eclipse.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/3] Performing build step for 'bootloader'
ninja: no work to do.
esptool.py -p COM5 -b 460800 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000
partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 blink.bin
esptool.py v2.9-dev
Serial port COM5
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
Adding "flash"'s dependency "all" to list of commands with default set of options.
Executing action: all (aliases: build)
Running ninja in directory e:\esp_ws\blink\build
Executing "ninja all"...
Executing action: flash
Running esptool.py in directory e:\esp_ws\blink\build
Executing "C:\espressif\.espressif\python_env\idf4.1_py3.7_env\Scripts\python.exe C:\esp-idf\components/esptool_py/esptool/esptool.py -p COM5 -b 460800 --after hard_reset write_flash @flash_project_args"...
esptool.py failed with exit code 2
------------------------------------------------------------------------------------------------------------------------------------------------------------------
according to above out put the flashing baud rate is 460800.
I need to change it to 115200.
But I can't find where to change
Please help !!!