I've done a USB to UART programmer board. I use Arduino IDE (macOSX)to upload a sketch. If I short RX and TX on a programmer board it works as it should. All I enter in the Serial Monitor it shows me back. But when I try to upload a sketch to my ESP8266-12e it shows me this:
trying to connect
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
I connect ESP as it is written in a datasheet for UART. Tried different ways to start ESP described in lots of links available online. Seems like ESP works fine itself. The led blinks as it should. But it looks like it doesn't communicate with the CH340G. If I reset it, it shows strange chars in serial monitor at all possible speeds. I've tried to connect it to Arduino to upload a sketch and it doesn't work with Arduino Nano as well. I've tried other ESPs and they are not working. I've tried connect Arduino to my programmer board and it's not working. My mac sees CH340G serial port. I used the same schematics and components as on Arduino Nano for my programmer board. When I connect my Nano board Arduino IDE uploads the sketches to Nano fine. Also I have an ESP board with a built in CH340G and it works. But my schematics is not working. I tried to replace the CH340G by a chip from a working nano board and put my one to the board. All chips works fine on the nano board but doesn't work in my schematics. What am I doing wrong?
I've tried to put decoupling caps. But it doesn't help. I've tried esptool in terminal to check the board. It can't connect.