Flash Arduino with RX from UART connected??

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

MJU
Posts: 400
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 96 times
Been thanked: 85 times
Contact:

Flash Arduino with RX from UART connected??

Postby MJU » Mon Jun 10, 2019 12:51 am

This is something that I wanted to ask earlier.

I have these Chinese Arduino clones, with ch340 chips.
If I use the hardware UART, I can't flash the Arduino while the RX is connected to a device..

I need to disconnect the RX pin before I can flash the chip.
Is there a way that I can flash it without disconnect the RX pin?

Thanks!

User avatar
LeighM
Matrix Staff
Posts: 1748
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 414 times
Been thanked: 577 times
Contact:

Re: Flash Arduino with RX from UART connected??

Postby LeighM » Mon Jun 10, 2019 8:25 am

No, if you have a signal holding the RX pin and interfering with the signal from the ch340 chip, then it will stop the bootloader from receiving.
Resistors and diodes might help. Arduino forums might have some suggestions on this.

mnf
Valued Contributor
Valued Contributor
Posts: 429
Joined: Wed May 31, 2017 11:57 am
Has thanked: 48 times
Been thanked: 242 times
Contact:

Re: Flash Arduino with RX from UART connected??

Postby mnf » Mon Jun 10, 2019 8:56 am

You can use ISP (or ICSP) to program the Arduino. This bypasses the bootloader altogether and is useful in cases like this, for programming chips without usb access and adding the bootloader to be chips etc..

Search the Arduino forums for details
These users thanked the author mnf for the post:
Benj (Tue Jun 11, 2019 5:00 pm)
Rating: 5.88%
 

MJU
Posts: 400
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 96 times
Been thanked: 85 times
Contact:

Re: Flash Arduino with RX from UART connected??

Postby MJU » Tue Jun 11, 2019 3:22 pm

Thank you all!