Closed swiipius closed 1 year ago
If I understood you correctly then you have two issues.
Both of these are hardware design tasks and related to you board. I'm sorry but I don't get it why do you think that this is an esptool issue or esptool should be do anything about it?
I may have forgotten to precise, but, as the image show, I'm using IO pin in order to communicate with the stm32 and the classic RX/TX are for the flash. I posted this issue here because I thought the esptool community would be best able to help me on this subject. I believed that there would be an argument I can add to my command to make the switch.
The documentation you sent me, apparently solve my problem. I use the command sudo stty -F /dev/ttyUSB0 -hupcl
. Thanks for your answer !
Operating System
Ubuntu 22.04
Esptool Version
v4.5.1
Python Version
3.10.6
Chip Description
ESP32-WROOM-32D
Device Description
Custom build. We built our own circuit. This board does several things and use the esp32 for Wi-Fi and Bluetooth communication.
Hardware Configuration
No response
How is Esptool Run
Command Line
Full Esptool Command Line that Was Run
python3 -m esptool --port /dev/%s --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 32MB 0x0 firmware_path.bin
Esptool Output
More Information
The commands always succeed. In order to understand the problem, here is some context. We are using two microcontroler a stm32 to control other element on our board and an esp32 to communicate over wifi and bluetooth. They communicate together with a serial connection. The problem is that : when the flash is done, the esp prog still communicate with the esp prog, so the stm32 con't communicate. We've tried to cut the power line between the esp prog and esp32, reset the card, reset the esp, but with no success.
Other Steps to Reproduce
The goal of this is to be able to flash the esp and then use the chip even if it is always plugged to ESP-PROG. We are planning to create automatic actions including a flash part and then after download sending commands from STM32. But if the esp prog is plugged to the card, we cannot use our card because it's waiting a response from the esp32 which is still in download mode.
I Have Read the Troubleshooting Guide