Page 1 of 1
ft232 to esp32 module flash the code
Posted: Wed Jul 19, 2023 2:35 pm
by razdvakoma
i'm designing a pcb based on esp32 chip, first i want to test uploading the code with ft232 module, so I took my esp-wroom-32 devkit and ft232 and stuck into a problem - the code is not flashing with error "A fatal error occurred: Failed to connect to ESP32: No serial data received.". my wiring now is ft232 -> esp32 | rx -> tx0; tx -> rx0; gnd -> gnd; vcio -> vin. I also supply esp32 board with 5v power supply.
What can be the problem?
Re: ft232 to esp32 module flash the code
Posted: Thu Jul 20, 2023 1:43 am
by ESP_Sprite
If you're using a devkit, the on-board USB-serial chip already is connected to those pins. Connecting an external FT232 leads to a conflict between those two.
Re: ft232 to esp32 module flash the code
Posted: Thu Jul 20, 2023 7:26 am
by razdvakoma
ESP_Sprite wrote: ↑Thu Jul 20, 2023 1:43 am
If you're using a devkit, the on-board USB-serial chip already is connected to those pins. Connecting an external FT232 leads to a conflict between those two.
yeah, there is cp2102 on my devboard. but I tried to flash a code on my custom pcb and there is the same problem I described above, I can share schematics if it is important.
Re: ft232 to esp32 module flash the code
Posted: Thu Jul 20, 2023 9:59 am
by ESP_Sprite
Let's focus on that board then. Schematics would be useful. Also, if you run a standard serial port terminal program on the FT232s COM-port and you turn on the ESP32, do you get anything?
Re: ft232 to esp32 module flash the code
Posted: Thu Jul 20, 2023 10:19 am
by razdvakoma
ESP_Sprite wrote: ↑Thu Jul 20, 2023 9:59 am
Let's focus on that board then. Schematics would be useful. Also, if you run a standard serial port terminal program on the FT232s COM-port and you turn on the ESP32, do you get anything?
schematics in attachments. If i monitor my board theres a clear terminal
Re: ft232 to esp32 module flash the code
Posted: Fri Jul 21, 2023 2:15 am
by ESP_Sprite
If anything, the FT232 is a 3.3V device so there's no need for the level shifter (?) around VT1/VT2. (I'm not even sure what those circuits are supposed to do,
simulating gives me nothing on the output.)
Re: ft232 to esp32 module flash the code
Posted: Fri Jul 21, 2023 7:24 am
by razdvakoma
ESP_Sprite wrote: ↑Fri Jul 21, 2023 2:15 am
If anything, the FT232 is a 3.3V device so there's no need for the level shifter (?) around VT1/VT2. (I'm not even sure what those circuits are supposed to do,
simulating gives me nothing on the output.)
But my ft232 module has 5v jumper (mb I misunderstand smth). Anyway I'm going to redesign my board adding cp2102 at least. Thx for replies (cool instrument for simulating by the way).
Re: ft232 to esp32 module flash the code
Posted: Fri Jul 21, 2023 9:28 am
by ESP_Sprite
razdvakoma wrote: ↑Fri Jul 21, 2023 7:24 am
But my ft232 module has 5v jumper (mb I misunderstand smth). Anyway I'm going to redesign my board adding cp2102 at least. Thx for replies (cool instrument for simulating by the way).
I think that only sets the power supply output pin, the IO still is 3.3V.
Re: ft232 to esp32 module flash the code
Posted: Fri Jul 21, 2023 9:33 am
by razdvakoma
Well, for those who are interested - adding pull-up resistor to gpio0 solved the problem. Other circuit elements in my scheme are quite OK, but still theres A LOT to improve