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

Post Reply
MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Flash Arduino with RX from UART connected??

Post by MJU »

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: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Flash Arduino with RX from UART connected??

Post by LeighM »

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: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Flash Arduino with RX from UART connected??

Post by mnf »

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

MJU
Posts: 502
Joined: Wed Nov 07, 2007 6:51 pm
Location: Antwerp Belgium
Has thanked: 121 times
Been thanked: 108 times
Contact:

Re: Flash Arduino with RX from UART connected??

Post by MJU »

Thank you all!

Post Reply