Solution:
Apparently there were 1k ohm resistors connected in series between the Rx and Tx of the CH340 IC & the Tx and Rx pins of the module. I checked some schematics and most of the designs of CH340 module didn't have any resistors in that path. So I removed them and shored the pads. Now the driver is working perfectly fine with my stm32.
However, the same driver worked totally normally with my Arduino Pro Mini.
Problem:
I recently bought a stm32f103c6t6a. And I have a ch340 USB to serial converter. But could not upload anything to the board using the Arduino ide. I have followed all the instruction posted in instructables, arduino's website and rogerclarkmelbourne's guide but still won't work.
The ide shows this message:
Code: Select all
Sketch uses 12604 bytes (38%) of program storage space. Maximum is 32768 bytes.
Global variables use 2496 bytes (24%) of dynamic memory, leaving 7744 bytes for local variables. Maximum is 10240 bytes.
stm32flash 0.4
Failed to init device.
http://stm32flash.googlecode.com/
Using Parser : Raw BINARY
Interface serial_w32: 115200 8E1