chipKIT® Development Platform

Inspired by Arduino™

USB upload problems

Created Wed, 27 Jun 2012 16:23:26 +0000 by spencoid


spencoid

Wed, 27 Jun 2012 16:23:26 +0000

This seems to be a new problem with the current test MPIDE or at least I do not remember the problem before.

If I load a program into the chipkit uno that uses the serial port for debugging (and opens a serial connection between the chipkit and the computer) I need to disconnect and replug the USB cable each time I want to upload the program.

There has to be a better way, this is really annoying having to unplug and re-plug over and over. It does not help to close the serial monitor before trying an upload.


rasmadrak

Wed, 27 Jun 2012 17:56:28 +0000

Unfortunately this is by design... The Serial(1) pins must be unplugged during program upload. It sucks thou. :(

The workaround is to not use the Serial for anything other than communication with a computer. Insert a cable and the program doesn't upload...


les1943

Thu, 28 Jun 2012 08:38:37 +0000

I incorporated a double pole switch on the TX/RX , just have to remember to change it ...


rasmadrak

Wed, 18 Jul 2012 08:42:13 +0000

Hi there,

Would you care to explain a little more about how you solved it using a pole-switcher? :)


les1943

Wed, 18 Jul 2012 19:44:57 +0000

I am using both serial ports on the uno so have to disconnect while uploading, all i have done is to route the serial tx/rx pins from pins J6-0 J6-1 to the common of a two pole switch. ON side goes to my serial module OFF is unconnected. ( actually its a small DIL switch).


rasmadrak

Fri, 20 Jul 2012 08:54:43 +0000

But you still have to disconnect any cables in the pin 0/1 first?


les1943

Fri, 20 Jul 2012 15:18:56 +0000

No.. If they were longer wires I guess they could cause a problem but the switch is just 5cm from the tx rx pins. the uno sits on an interface strip board ( like a shield ) see my picture ... http://www.chipkit.org/forum/viewtopic.php?f=16&t=977