<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Program upload problems</title>
		<link>http://forums.leaflabs.com/topic.php?id=74192</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:18:17 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=74192" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "Program upload problems"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74192#post-105111</link>
			<pubDate>Tue, 24 Dec 2013 14:49:28 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105111@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;samtal - My suggestion looks wrong. I apologise. It seemed such an elegant explanation, if both boards still had the same problem.  It's odd you can't find a plausible .jar file to contain RXTXPort, but not worth looking.&#60;/p&#62;
&#60;p&#62;So, the errant board:&#60;br /&#62;
1. runs the perviously uploaded program&#60;br /&#62;
2. won't talk to the host PC as a USB serial device&#60;br /&#62;
3. can't be contacted by the IDE to upload a new program&#60;br /&#62;
Is that all correct?&#60;/p&#62;
&#60;p&#62;Further, the errant board:&#60;br /&#62;
4. can't be put into 'Perpetual bootloader mode', or can be, but the IDE still can't upload a program.&#60;br /&#62;
Which is it?&#60;/p&#62;
&#60;p&#62;It looks like some part of the USB is broken. It is most likely electrical if the boards were identical.&#60;br /&#62;
Have you tried a couple of different USB leads to eliminate that as a possible cause?&#60;/p&#62;
&#60;p&#62;One of the lines, USBDP, or USB D+, should get pulled up to about 3.3V if everything at the lowest levels are working correctly.&#60;br /&#62;
So testing for this might give some hints on the health of the board.&#60;br /&#62;
If you can see D+ being pulled up, then the bootloader is running okay, and the wiring upto the point your testing looks okay.&#60;/p&#62;
&#60;p&#62;Have you got access to any measuring equipment?&#60;br /&#62;
Have you got any way to get at the USB signals? For example an old USB cable that you don't mind 'sacrificing' (by taking it apart to get at the wires), or fine pointed probes on a multimeter or oscilloscope?&#60;/p&#62;
&#60;p&#62;I've never tried disassembling a USB mini cable. I imagine it is delicate but doable.&#60;/p&#62;
&#60;p&#62;The signal exits the board on a wire in the USB cable, so that might provide the most information, but if you haven't got a cable you could take apart, your next best approach would be a fine probe and a multimeter or oscilloscope, and looking at the PCB. (You could also try to use another maple, instead of a multimeter or oscilloscope to detect a voltage or signal, but there is still the problem of connecting to the signal.)&#60;/p&#62;
&#60;p&#62;The signal appears on pin 45 of the STM32F, and there is a small resistor (R14) which you might be able to test if you have good eyesight, or a magnifying glass, and a steady hand. (Of course, you might be quite confident, in which case you might even try soldering a fine wire to a resistor. terminal)&#60;/p&#62;
&#60;p&#62;To get at the resistor terminals, you'd need to know which one it is (a good solution would be to install a free version of Eagle, and use its 'Show' command to highlight the signal, vias and resistor on the PCB layout). There is also a .png file of the top copper which clearly shows the USB socket and D+ signal. So that may be enough to locate the resistor which is due 'East', and directly connected to that signal.&#60;/p&#62;
&#60;p&#62;R14 is the 5th one from the top of the row of small, two terminal components directly behind the USB socket. Fortunately, R14, and it's neighbouring part C10 have the same signal connected to them so you have a reasonable place to press a probe (also C10 is a pale colour, and id due 'South' of R14 [with the USB socket to the West] so it is easier to orientate yourself when looking at the board).&#60;/p&#62;
&#60;p&#62;Then you'd need a fine multimeter or oscilloscope probe to connect to the resistor. You'll need a steady hand as the resistor and capacitor are small (0402), and is in a row of parts. &#60;/p&#62;
&#60;p&#62;If you have access to an oscilloscope with a good probe, you might want to see if anything happens on either of the two USB lines when the Maple is plugged in. The oscilloscope will load the signals, so it might be too distorted to communicate reliably, but seeing any signals on those wires suggests the host PC can see the Maple's USB electrical signals, even if nothing higher is working.&#60;/p&#62;
&#60;p&#62;HTH&#60;/p&#62;
&#60;p&#62;(Merry Christmas and Happy New Year)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Program upload problems"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74192#post-105109</link>
			<pubDate>Tue, 24 Dec 2013 08:16:43 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">105109@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks.&#60;br /&#62;
I may have miss led you by not writing a new post, as the original issue with the java messages is gone, part of the problem remains, though.. Sorry.&#60;br /&#62;
My problem now is as in the last post, and it is only with one board, on two different computers, which indicates that the problem is with the board rather than the system.&#60;br /&#62;
(Other two boards are OK).&#60;br /&#62;
Nevertheless, I took your advice, but could not locate the files you mention in my Java files or elsewhere on my computer (WinXP).&#60;br /&#62;
My Java is JAVA_VERSION=&#34;1.7.0&#34; all files are dated Oct. 2013 (I'm not sure if these are install or original dates).&#60;br /&#62;
So - I still can not access the serial USB on that board, but I can run it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Program upload problems"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74192#post-105105</link>
			<pubDate>Sun, 22 Dec 2013 13:03:12 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105105@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;samtal - The original error message starts with a Java error, but different from the errors on OS X (though, if you aren't using OS X, it may be different anyway). Maybe it's nothing to do with the Maple?&#60;br /&#62;
Have you recently installed an update to Java on the machine? &#60;/p&#62;
&#60;p&#62;If so, maybe try to find the .jar file which contains gnu.io.RXTXPort, and see what its last update date was?&#60;br /&#62;
It is RXTXcomm.jar on OS X.&#60;/p&#62;
&#60;p&#62;If that has been updated, then it may be the culprit.&#60;br /&#62;
If you find the file, you might also have a look at it using a program called jar (if you have it), which is a Java version of zip. On my machine, the files inside RXTXcomm.jar were last updated on &#34;Mon Jan 30 00:27:04 GMT 2006&#34;&#60;/p&#62;
&#60;p&#62;(full disclosure: I am not a member of LeafLabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Program upload problems"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74192#post-105101</link>
			<pubDate>Sun, 22 Dec 2013 02:09:46 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">105101@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The Maple &#34;boot loader&#34; and the IDE together are supposed to load the built-in ST ARM USB driver AND its Windows Serial implementation driver, using two drivers: The Serial and the DFU (for win).&#60;br /&#62;
(Both are located in the Maple Drivers library).&#60;br /&#62;
The problem I am facing is that while the USB driver and port load nicely, it is not implemented as a serial port.&#60;br /&#62;
Uninstalling and re-install the port makes no change to that.&#60;br /&#62;
 I have learned (and experienced) that kind of problem with Win7, but I am running WinXP which runs OK for other Maples.&#60;br /&#62;
I have tried the same board, another computer, fresh Maple download (all, incl. drivers) for no avail, which indicates the problem is with the board.&#60;br /&#62;
It still shows the Maple003 as pure USB port, no serial.&#60;br /&#62;
Can anyone help?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Program upload problems"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74192#post-105039</link>
			<pubDate>Sun, 08 Dec 2013 11:25:10 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">105039@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
In continuation to my previous post here, I have now a situation in which the USB does not install as a serial, but rather as a pure USB.&#60;br /&#62;
I have tried all install options, but the Maple003 appears not as a serial, and thus is not recognized by the IDE.&#60;br /&#62;
The drivers files maple_serial.inf, libusb0.dll, libusb0.sys are present, and the install runs but not as a serial port.&#60;br /&#62;
I have seen several posts but non helped.&#60;br /&#62;
Any idea?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>samtal on "Program upload problems"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74192#post-105035</link>
			<pubDate>Sun, 08 Dec 2013 04:51:40 +0000</pubDate>
			<dc:creator>samtal</dc:creator>
			<guid isPermaLink="false">105035@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi, I need urgent advice, as follows:&#60;br /&#62;
All of a sudden, my 2 boards will not load program, but will show a long red error message as shown below.  (on WinXP 32, same as always!)&#60;br /&#62;
The previously loaded program runs, resets and maple program reload did not make a difference.&#60;br /&#62;
I also noticed that one board has its USB port as a serial one, the other is shown as a pure USB port, but both will not load, and show the same error.&#60;br /&#62;
This to me is a catastrofic situation, as I need to present my program after making some minor changes.&#60;/p&#62;
&#60;p&#62;Thanks&#60;br /&#62;
samtal&#60;/p&#62;
&#60;p&#62;Here is the full shown message: &#60;/p&#62;
&#60;p&#62;Going to build using 'armcompiler' (ARM)&#60;br /&#62;
	Compiling core...&#60;br /&#62;
	No libraries to compile.&#60;br /&#62;
	Compiling the sketch...&#60;br /&#62;
	Linking...&#60;br /&#62;
	Computing sketch size...&#60;/p&#62;
&#60;p&#62;E:\DOCUME~1\SAM~1.TAD\LOCALS~1\Temp\build1812029404505690763.tmp\WaferMapping08.cpp.bin  :&#60;br /&#62;
section    size   addr&#60;br /&#62;
.data   17984      0&#60;br /&#62;
Total   17984&#60;/p&#62;
&#60;p&#62;Binary sketch size is reported above. Check it against a 108000 byte maximum.&#60;br /&#62;
Loading via dfu-util&#60;br /&#62;
Resetting to bootloader via DTR pulse&#60;/p&#62;
&#60;p&#62;java.io.IOException: No error in nativeDrain&#60;br /&#62;
	at gnu.io.RXTXPort.nativeDrain(Native Method)&#60;br /&#62;
	at gnu.io.RXTXPort$SerialOutputStream.flush(RXTXPort.java:1201)&#60;br /&#62;
	at processing.app.Serial.write(Serial.java:470)&#60;br /&#62;
	at processing.app.Serial.write(Serial.java:492)&#60;br /&#62;
	at processing.app.debug.DFUUploader.emitResetPulse(DFUUploader.java:170)&#60;br /&#62;
	at processing.app.debug.DFUUploader.uploadViaDFU(DFUUploader.java:100)&#60;br /&#62;
	at processing.app.debug.DFUUploader.uploadUsingPreferences(DFUUploader.java:57)&#60;br /&#62;
	at processing.app.Sketch.upload(Sketch.java:1473)&#60;br /&#62;
	at processing.app.Sketch.exportApplet(Sketch.java:1405)&#60;br /&#62;
	at processing.app.Sketch.exportApplet(Sketch.java:1368)&#60;br /&#62;
	at processing.app.Editor$45.run(Editor.java:1965)&#60;br /&#62;
	at java.lang.Thread.run(Thread.java:619)&#60;/p&#62;
&#60;p&#62;Searching for DFU device [1EAF:0003]...&#60;br /&#62;
dfu-util - (C) 2007-2008 by OpenMoko Inc.&#60;br /&#62;
This program is Free Software and has ABSOLUTELY NO WARRANTY&#60;/p&#62;
&#60;p&#62;Couldn't find the DFU device: [1EAF:0003]
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
