<?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: Did my LabVIEW VI Code fry my Maple Rev 3 board?</title>
		<link>http://forums.leaflabs.com/topic.php?id=128</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:25 +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=128" rel="self" type="application/rss+xml" />

		<item>
			<title>bnewbold on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-925</link>
			<pubDate>Tue, 31 Aug 2010 12:58:35 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">925@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;First, sorry not to have replied to this thread for so long!&#60;/p&#62;
&#60;p&#62;I have seen the &#34;No such file or directory&#34; problem once or twice on various platforms but have trouble reproducing it; it's noted in the Troubleshooting page: &#60;a href=&#34;http://leaflabs.com/docs/maple/troubleshooting/#compiler&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/maple/troubleshooting/#compiler&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I think the root of this problem is a bug with temporary directory creation code added to the Arduino IDE recently (but before we forked off). It is probably not related to your uploading woes. &#60;/p&#62;
&#60;p&#62;Your &#34;throbbing led&#34; problems mentioned is our &#34;assertion failed&#34; indicator and probably means that a HardFault has occurred. This is distinct from an infinite loop or looping interrupt problem and could be caused by a divide by zero, bad pointer, etc. &#60;/p&#62;
&#60;p&#62;The DFU upload problem (where it fails at &#34;Starting download: [&#34;) is almost certainly our fault in some way. Getting all the various USB modes to work in harmony cross platform was a very delicate balancing act and there may remain issues despite long hours of testing on many machines. We got a junker laptop that we will set up XP SP3 on in in the next week or two and can rule out that type of problem then. The possibility that your FLASH has become corrupted is intriguing. I think bootloader corruption or issues during FLASH writes describe your problems very well, but we don't have any code to check for that yet. &#60;/p&#62;
&#60;p&#62;We're sorry that you've had so much trouble reliably uploading programs and that it has taken us so long to debug them. We can ship you a new, carefully tested board to try if you agree to send your current one back eventually so we can figure out what's wrong with it. You could also wait another week or two until we have an SP3 system up and running to test with. Lastly, we will be traveling to NYC the weekend of Sept 25th (for the OSHW summit and Maker Faire) and would be happy to meet with you in person to debug any issues you're having then, though hopefully you'll be up and running by then!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-900</link>
			<pubDate>Mon, 30 Aug 2010 14:06:24 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">900@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;August 30, 2010&#60;/p&#62;
&#60;p&#62;Hello-&#60;/p&#62;
&#60;p&#62;I am still having unpredictable results uploading sketches to FLASH memory.&#60;/p&#62;
&#60;p&#62;To trouble-shoot I am using the standard Blink sketch (and alternating between 1 and 3 second blink  delays to make it easy for me to determine if sequences of upload succeed or fail).&#60;/p&#62;
&#60;p&#62;For the last few days I have been unable to upload any sketches to FLASH.  This did not matter to much  since I was able to upload to RAM.&#60;/p&#62;
&#60;p&#62;Today, I placed the Maple into perpetual bootloader mode and I was successful at uploading the Blink  sketch to FLASH.&#60;/p&#62;
&#60;p&#62;After editing the blinking interval I tried upload via the IDE button.&#60;/p&#62;
&#60;p&#62;I got the &#34;No such file or directory&#34; error message (see end of message).  The directory exists, but the files do not.&#60;/p&#62;
&#60;p&#62;In the attached error message I showed the full line for the adc.c.o file, but to save space I edited  the lines for the other files.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC&#60;/p&#62;
&#60;p&#62;Maple board: Rev 3 (summer 2010)&#60;br /&#62;
Maple IDE: 0.6.0&#60;/p&#62;
&#60;p&#62;Processor: Pentium III (1 GHz)&#60;br /&#62;
USB ports: 1.1&#60;/p&#62;
&#60;p&#62;OS: Windows XP Professional (32-bit)&#60;br /&#62;
SP: Service Pack 3&#60;/p&#62;
&#60;p&#62;Java type: JDK and JRE&#60;br /&#62;
Java version: 1.6.0_20 (yes, I know that update 21 is available)&#60;/p&#62;
&#60;p&#62;&#38;lt;start of diagnostics&#38;gt;&#60;/p&#62;
&#60;p&#62;Going to build using 'make' (ARM)&#60;br /&#62;
	Compiling core...&#60;br /&#62;
	Compiling any libs...&#60;br /&#62;
	Compiling the sketch...&#60;br /&#62;
	running linker asynchronously...&#60;/p&#62;
&#60;p&#62;arm-none-eabi-gcc: C:\DOCUME~1\%username%\LOCALS~1\Temp\build8983615117869570609.tmp\adc.c.o: No such  file or directory&#60;/p&#62;
&#60;p&#62;descriptors.c.o: No such file or directory&#60;br /&#62;
exc.c.o: No such file or directory&#60;br /&#62;
exti.c.o: No such file or directory&#60;br /&#62;
ext_interrupts.c.o: No such file or directory&#60;br /&#62;
flash.c.o: No such file or directory&#60;br /&#62;
gpio.c.o: No such file or directory&#60;br /&#62;
nvic.c.o: No such file or directory&#60;br /&#62;
pwm.c.o: No such file or directory&#60;br /&#62;
rcc.c.o: No such file or directory&#60;br /&#62;
spi.c.o: No such file or directory&#60;br /&#62;
syscalls.c.o: No such file or directory&#60;br /&#62;
systick.c.o: No such file or directory&#60;br /&#62;
time.c.o: No such file or directory&#60;br /&#62;
timers.c.o: No such file or directory&#60;br /&#62;
usart.c.o: No such file or directory&#60;br /&#62;
usb.c.o: No such file or directory&#60;br /&#62;
usb_callbacks.c.o: No such file or directory&#60;br /&#62;
usb_core.c.o: No such file or directory&#60;br /&#62;
usb_hardware.c.o: No such file or directory&#60;br /&#62;
usb_init.c.o: No such file or directory&#60;br /&#62;
usb_int.c.o: No such file or directory&#60;/p&#62;
&#60;p&#62;&#38;lt;end of diagnostics&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-809</link>
			<pubDate>Tue, 24 Aug 2010 13:11:33 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">809@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;The partial success I indicated in my previous post was short lived.&#60;/p&#62;
&#60;p&#62;I turned off my computer after I sent my last message.&#60;/p&#62;
&#60;p&#62;I just booted my system, started the Maple IDE, and inserted the Maple Rev 3 board, expecting to see a blinking LED and COM7 under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34;.&#60;/p&#62;
&#60;p&#62;However, COM7 is not listed and the LED is not blinking.&#60;/p&#62;
&#60;p&#62;I have never used PWM to vary the intensity of the LED, but my current observations are what I expect to see with using PWM to controll LEDs.  The LED intensity first gradually increases in intensity before gradually decreasing in intensity.  Then the LED goes off before repeating the cycle.&#60;/p&#62;
&#60;p&#62;I put the board into perpetual bootloader mode.  I uploaded the Blink sketch which worked as expected.  Now COM7 is listed (and selected).  After modifying the sketch to use 2000 ms delays and uploading the LED blinks on/off with a 2 sec intervals.  COM7 is still listed (and still selected).&#60;/p&#62;
&#60;p&#62;The solutions to my Maple problems do not seem to be reliable from day to day or after rebooting.  I feel frustrated.&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-801</link>
			<pubDate>Tue, 24 Aug 2010 08:24:12 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">801@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;August 24, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;1)&#60;br /&#62;
Yes, I was aware the serial port functions and uploading steps are separate.  Is there anything in my description (which I hope helps other users with similar problems) which suggests I was expecting to see both COM7 (how my Maple board connects) and the uploading at the same time (working concurrently)?&#60;/p&#62;
&#60;p&#62;2)&#60;br /&#62;
I just succeeded in using the upload button in the IDE to upload the Blink sketch to &#34;Tools &#38;gt;&#38;gt; Board &#38;gt;&#38;gt; LeafLabs R3 Maple to RAM&#34;.  The sketch functioned correctly and I could still see &#34;Tools &#38;gt;&#38;gt; Serial Port &#38;gt;&#38;gt; COM7&#34;.&#60;/p&#62;
&#60;p&#62;Then I modified the sketch by increasing the two delay statements to 2000 (ms).  The modified sketch uploaded via the IDE button and worked correctly (without requiring that I first click the compile button).  I could still see COM7.  Good news so far.&#60;/p&#62;
&#60;p&#62;However, when I tried switching to &#34;Tools &#38;gt;&#38;gt; Board &#38;gt;&#38;gt; LeafLabs Maple R3 to FLASH&#34; the uploading crashed with the same message described in my previous post (steps 27, 20, and 9).&#60;/p&#62;
&#60;p&#62;The LED is not flashing, so the sketch is not running.  The problem is not a buggy message system.&#60;/p&#62;
&#60;p&#62;Is there a problem with my FLASH memory?&#60;/p&#62;
&#60;p&#62;3)&#60;br /&#62;
This is what I did next:&#60;/p&#62;
&#60;p&#62;Select &#34;Tools &#38;gt;&#38;gt; Board &#38;gt;&#38;gt; LeafLabs R3 Maple to RAM&#34;.&#60;br /&#62;
Place board into &#34;perpetual bootloader mode&#34;.&#60;br /&#62;
Press the IDE upload button (sketch still using two 1000 ms delays).&#60;br /&#62;
Blink sketch functions correctly and I see COM7!&#60;br /&#62;
I increased the two sketch delays to 2000 ms, the modified sketch uploads and run, and I still see COM7.&#60;br /&#62;
Partial success.&#60;/p&#62;
&#60;p&#62;4)&#60;br /&#62;
Conclusion and questions:&#60;/p&#62;
&#60;p&#62;Using the Blink sketch the board is behaving if I use Maple RAM, but not if I use Maple FLASH memory.&#60;/p&#62;
&#60;p&#62;When my Maple first arrived, I believe I successfully uploaded the Blink sketch to both the FLASH and RAM.  It has been a few weeks, so I cannot be totally sure if the FLASH worked before I started to port my Arduino/LabVIEW code to the Maple.&#60;/p&#62;
&#60;p&#62;How can I test the Maple FLASH memory?&#60;/p&#62;
&#60;p&#62;Can an external application (such as my LabVIEW code) which contacts the Maple (using COM7), causing the Maple to perform an analog read, after which the Maple returns the ADC value to LabVIEW using SerialUSB.print() and SerialUSB.println() affect STM32 FLASH memory?&#60;/p&#62;
&#60;p&#62;I am new to using microcontrollers and I am looking forward to learning how to use the Atmel and STM32 spec sheets to learn how to program the Arduino/Maple boards.&#60;/p&#62;
&#60;p&#62;However, I am reluctant to put a lot of time into porting my working Arduino/LabVIEW projects to the Maple until I am confident that my program bugs are caused by my mistakes and not the Maple software or a problem &#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-797</link>
			<pubDate>Mon, 23 Aug 2010 17:53:12 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">797@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for the detailed info! This gives us a lot to work with. First some info dumpage:&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/maple-bootloader/&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/maple-bootloader/&#60;/a&#62;  The take home message there is that the DFU mode (when maple accepts new code during programming) and the serial port mode (the COM port) do not run concurrently. When you reset maple, the serial port SHOULD be lost, and the DFU mode should come up. Then after programming, the board should auto reset, sit in dfu mode for about 3 seconds, then exit to &#34;user mode&#34; (where it runs your code) and bring the serial port back up. Thus, if the board is blinking away running YOUR code, you should see the serial port. If its doing its bootloader thing (such as after reset for a few seconds) you should not see the serial port. On some OS's weve gotten reports that they have to re-select the serial port every time. This is annoying. I agree, were going to patch in some sort of fix for the next IDE release. For the auto-reset feature to work (one-click programming, without infinite bootloader mode) the Maple must be running in user mode (running your blinky or whatever) and the IDE must have the serial port for Maple selected (in your case COM7). You should not need to run with admin privileges. &#60;/p&#62;
&#60;p&#62;On to your next problem, seen in steps 27, 20, and 9. This is concerning, and is not the expected behavior. In your examples, you are having failures when uploading to flash. Does it fail for ram too? This very well may be some weirdness with USB. When the upload fails like this (which is strange, ill try and bring up an SP3 machine and recreate the problem) its possible the Maple is getting stuck in bootloader mode, and thus causing your program not to run and thus the serial port not to come up. Its also possible that its not really failing, but just saying it did, the message reporting in the IDE is a bit buggy, sometimes I dont get the whole terminal dump, and it stops in the middle, even though the programming operation continued. You can tell that the programming operation completed if the board resets (by itself) after programming.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-794</link>
			<pubDate>Mon, 23 Aug 2010 15:45:49 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">794@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;In my previous post I should have written, to be more clear &#34;If I did not issue a separate compile command WITH THE MAPLE there were times when I was not sure if the altered code was compiled or if the unaltered version was uploaded.&#34;&#60;/p&#62;
&#60;p&#62;I am still having &#34;hardware&#34; problems with my Maple.&#60;/p&#62;
&#60;p&#62;When my Maple first arrived, compiling/uploading/modifying simple sketches (such as &#34;Blinki&#34;) for my Maple was trivial.  Programming the Maple seemed as reliable and predictable as programming an Arduino Duemilanove board.&#60;/p&#62;
&#60;p&#62;My current problems started after I started to port code I wrote which permits communication between an Arduino Duemilanove board and LabVIEW, a very robust engineering programming environment by National Instruments which uses GUI icons instead of text.&#60;/p&#62;
&#60;p&#62;The original code also works on a &#34;Seeduino&#34; clone.&#60;/p&#62;
&#60;p&#62;Now, I am reluctant to invest time into debugging my LabVIEW-Maple code until I am sure my Maple is behaving correctly.&#60;/p&#62;
&#60;p&#62;Here is a quick step-by-step description of my work this afternoon:&#60;/p&#62;
&#60;p&#62;1) turn on Pentium III computer running Windows XP Professional SP3 (512 meg RAM)&#60;br /&#62;
system running with &#34;administrator&#34; privileges&#60;br /&#62;
start Maple IDE (0.0.6)&#60;br /&#62;
under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34; see only see the system COM1 port (which does not surprise me since the Maple board is not connecte)&#60;/p&#62;
&#60;p&#62;2) plug in Maple (Rev 3, summer 2010) into USB 1.1 (not 2.0) port&#60;br /&#62;
hear two identical sets of tones (each set has two &#34;notes&#34;, but I forgot if the pitch of each set is high/low or low/high)&#60;br /&#62;
under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34; see both COM1 and COM7&#60;/p&#62;
&#60;p&#62;3) &#34;Tools &#38;gt;&#38;gt; Board &#38;gt;&#38;gt; LeafLabs Maple R3 to Flash&#34; is preselected&#60;/p&#62;
&#60;p&#62;4) open &#34;Examples &#38;gt;&#38;gt; Digital &#38;gt;&#38;gt; Blink&#34; sketch&#60;/p&#62;
&#60;p&#62;5) sketch compiles, using 12296 bytes&#60;/p&#62;
&#60;p&#62;6) sketch uploads and LED blinks correctly (on 1 sec, off 1 sec, etc)&#60;/p&#62;
&#60;p&#62;7) modify code, increasing each delay from 1000 to 2000 (msec).&#60;/p&#62;
&#60;p&#62;8) try uploading (without first recompiling changes)&#60;/p&#62;
&#60;p&#62;9) error message:&#60;/p&#62;
&#60;p&#62;last few lines of status message:&#60;/p&#62;
&#60;p&#62;&#38;lt;start of message&#38;gt;&#60;br /&#62;
Opening USB Device 0x1eaf:0x0003...&#60;br /&#62;
Found Runtime: [0x1eaf:0x0003] devnum=2, cfg=0, intf=0, alt=1, name=&#34;DFU Program FLASH 0x08005000&#34;&#60;br /&#62;
Setting Configuration 1...&#60;br /&#62;
Claiming USB DFU Interface...&#60;br /&#62;
Setting Alternate Setting ...&#60;br /&#62;
Determining device status: state = dfuIDLE, status = 0&#60;br /&#62;
dfuIDLE, continuing&#60;br /&#62;
Transfer Size = 0x0400&#60;br /&#62;
bytes_per_hash=245&#60;br /&#62;
Error during download get_status&#60;br /&#62;
Starting download: [&#60;br /&#62;
&#38;lt;end of message&#38;gt;&#60;/p&#62;
&#60;p&#62;10) board status:&#60;/p&#62;
&#60;p&#62;blue LED is not on&#60;br /&#62;
&#34;Tools &#38;gt;&#38;gt; Serial Port&#34; shows only system COM1 port&#60;/p&#62;
&#60;p&#62;11) Conclusion: Maple cannot be selected because it is not available&#60;/p&#62;
&#60;p&#62;12) Enter &#34;Perpetual bootloader mode&#34; as follows:&#60;/p&#62;
&#60;p&#62;Press RESET button.&#60;br /&#62;
During rapid flashes, press and hold the BUT button.&#60;br /&#62;
After several seconds, when the slow LED flashes are continuous for several seconds, release BUT button.&#60;/p&#62;
&#60;p&#62;The slow LED flashes continue.&#60;/p&#62;
&#60;p&#62;13) board status:&#60;/p&#62;
&#60;p&#62;&#34;Tools &#38;gt;&#38;gt; Serial Port&#34; still shows only system COM1 port&#60;/p&#62;
&#60;p&#62;14) upload (without first recompiling changes)&#60;/p&#62;
&#60;p&#62;15) upload not successful&#60;/p&#62;
&#60;p&#62;16) board status:&#60;/p&#62;
&#60;p&#62;blue LED is not on&#60;br /&#62;
&#34;Tools &#38;gt;&#38;gt; Serial Port&#34; shows only system COM1 port&#60;/p&#62;
&#60;p&#62;17) Conclusion: Maple cannot be selected because it is not available&#60;/p&#62;
&#60;p&#62;18) Enter &#34;Perpetual bootloader mode&#34; as described above (set 12)&#60;/p&#62;
&#60;p&#62;19) sketch does not compile&#60;/p&#62;
&#60;p&#62;20) error message:&#60;/p&#62;
&#60;p&#62;last few lines of status message (same as before; step 9):&#60;/p&#62;
&#60;p&#62;&#38;lt;start of message&#38;gt;&#60;br /&#62;
Opening USB Device 0x1eaf:0x0003...&#60;br /&#62;
Found Runtime: [0x1eaf:0x0003] devnum=2, cfg=0, intf=0, alt=1, name=&#34;DFU Program FLASH 0x08005000&#34;&#60;br /&#62;
Setting Configuration 1...&#60;br /&#62;
Claiming USB DFU Interface...&#60;br /&#62;
Setting Alternate Setting ...&#60;br /&#62;
Determining device status: state = dfuIDLE, status = 0&#60;br /&#62;
dfuIDLE, continuing&#60;br /&#62;
Transfer Size = 0x0400&#60;br /&#62;
bytes_per_hash=245&#60;br /&#62;
Error during download get_status&#60;br /&#62;
Starting download: [&#60;br /&#62;
&#38;lt;end of message&#38;gt;&#60;/p&#62;
&#60;p&#62;21) board status:&#60;/p&#62;
&#60;p&#62;blue LED is not on&#60;br /&#62;
&#34;Tools &#38;gt;&#38;gt; Serial Port&#34; shows only system COM1 port&#60;/p&#62;
&#60;p&#62;22) sketch uploads and LED blinks correctly (on 2 sec, off 2 sec, etc)&#60;/p&#62;
&#60;p&#62;23) under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34; see both COM1 and COM7&#60;/p&#62;
&#60;p&#62;24) modify code, decreasing each delay from 2000 to 1000 (msec).&#60;/p&#62;
&#60;p&#62;25) sketch compiles&#60;/p&#62;
&#60;p&#62;26) sketch does not upload&#60;/p&#62;
&#60;p&#62;27) error message:&#60;/p&#62;
&#60;p&#62;last few lines of status message (same as before; step 9):&#60;/p&#62;
&#60;p&#62;&#38;lt;start of message&#38;gt;&#60;br /&#62;
Opening USB Device 0x1eaf:0x0003...&#60;br /&#62;
Found Runtime: [0x1eaf:0x0003] devnum=2, cfg=0, intf=0, alt=1, name=&#34;DFU Program FLASH 0x08005000&#34;&#60;br /&#62;
Setting Configuration 1...&#60;br /&#62;
Claiming USB DFU Interface...&#60;br /&#62;
Setting Alternate Setting ...&#60;br /&#62;
Determining device status: state = dfuIDLE, status = 0&#60;br /&#62;
dfuIDLE, continuing&#60;br /&#62;
Transfer Size = 0x0400&#60;br /&#62;
bytes_per_hash=245&#60;br /&#62;
Error during download get_status&#60;br /&#62;
Starting download: [&#60;br /&#62;
&#38;lt;end of message&#38;gt;&#60;/p&#62;
&#60;p&#62;28) unplug board from USB 1.1 port&#60;br /&#62;
hear one set of tones (high/low)&#60;/p&#62;
&#60;p&#62;29) plug board back into USB 1.1 port&#60;br /&#62;
hear two set of tones (low/high)&#60;/p&#62;
&#60;p&#62;30) under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34; see both COM1 and COM7&#60;br /&#62;
LED is blinking (on 2 sec, off 2 sec, etc) so changes made between steps 24 and 26 did not reach Maple &#60;/p&#62;
&#60;p&#62;Conclusion:&#60;/p&#62;
&#60;p&#62;The COM7 port is often lost from the list, not simply deselected.&#60;br /&#62;
Even when the board appears as COM7 under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34; I cannot upload sketches.&#60;br /&#62;
I can upload only using the &#34;perpetual bootloader mode&#34;.&#60;/p&#62;
&#60;p&#62;Any ideas?&#60;/p&#62;
&#60;p&#62;Today was the first day I speculated that the problem might be related to USB 1.1/2.0 issues.&#60;/p&#62;
&#60;p&#62;Thanks for your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-791</link>
			<pubDate>Sun, 22 Aug 2010 17:21:29 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">791@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sunday, August 22, 2010&#60;/p&#62;
&#60;p&#62;Poslathian,&#60;/p&#62;
&#60;p&#62;Thanks for offering to look into the IDE code, but first I wanted to clarify my problem.&#60;/p&#62;
&#60;p&#62;I have to use the &#34;perpetual bootloader mode&#34; when the correct serial port is MISSING from the tools menu.  It is not simply a matter of the correct serial port being unselected.  If the correct serial port is listed I use it, but if it is not shown I need to use the &#34;perpetual bootloader mode&#34;.&#60;/p&#62;
&#60;p&#62;I do not know if the following observation is related.&#60;/p&#62;
&#60;p&#62;Before I thought I had fried my Maple board the most reliable way to upload a sketch was to first manually compile the code (using the IDE) before hitting the IDE upload button.  If I am correct, with the ARDUINO the IDE (version 017; I never upgraded to Arduino IDE version 018) recognizes when the code has been altered and will compile the code when just the IDE upload.&#60;/p&#62;
&#60;p&#62;If I did not issue a separate compile command there were times when I was not sure if the altered code was compiled or if the unaltered version was uploaded.&#60;/p&#62;
&#60;p&#62;I will send more observations later this week.&#60;/p&#62;
&#60;p&#62;Thanks for your help.&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-785</link>
			<pubDate>Fri, 20 Aug 2010 15:52:53 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">785@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Stephen,&#60;br /&#62;
  You mentioned that if you select the correct serial port from the tools menu, then the auto-reset function during programming works as expected? This should be the case... Perhaps after programming, for some reason, your selection of the board in the tools menu is getting lost, forcing you to reselect it. I agree this is annoying, Ill file a ticket for the next revision to make the selection more persistent.&#60;br /&#62;
  When the board resets for programming, the serial port does in fact &#34;die,&#34; probably the reason your selection setting are being lost. Ill dig in to the ide code for a fix.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128&amp;page=2#post-784</link>
			<pubDate>Fri, 20 Aug 2010 12:27:59 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">784@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Friday, August 20, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Thanks for the help, bnewbold.  I bookmarked the URLs to the two data acquisition sites.&#60;/p&#62;
&#60;p&#62;Please let me know if I should break my comments into different threads.  I believe my comments are straying from the initial &#34;did I fry by board&#34; focus.&#60;/p&#62;
&#60;p&#62;Is &#34;perpetual boot mode&#34; (see my previous comment) the same as the &#34;perpetual bootloader mode&#34; which you described?&#60;/p&#62;
&#60;p&#62;To load sketches into my Rev 3 Maple board I have been using the procedure posted on the forums by keymaster &#34;poslathian&#34;:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=76#post-407&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=76#post-407&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Poslathian says &#34;To enter perpetual bootloader mode, hit reset, and immediately following press and hold the boot button (labeled BUT). If BUT is held when the fast blinks transition to the slow blinks, then youre in perp. boot mode&#34;.&#60;/p&#62;
&#60;p&#62;I press the RESET button followed by pressing and holding the BUT button.  This usually results in a slow &#34;continual blinking&#34; pattern which allows me to then upload sketches.&#60;/p&#62;
&#60;p&#62;Unfortunately, the behavior of the board is unpredictable.  Occasionally, I am able to upload sketches without using the RESET/BUT trick (only when the board is correctly listed under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34;), but usually I have to resort to using the &#34;perpetual&#34; mode which is inconvenient.&#60;/p&#62;
&#60;p&#62;Is there a more permanent long term fix for this problem?  In the Maple documentation did I overlook a description of different ways to resolve a Maple trapped in a hard lock?&#60;/p&#62;
&#60;p&#62;bnewbold, you mentioned a separate serial device which might be helpful.  Can you provide me a link with instructions?  If I can get my board into the &#34;perpetual bootloader mode&#34; is the serial device you mentioned still useful?&#60;/p&#62;
&#60;p&#62;How can Maple-IDE code be tested in &#34;debug mode&#34;?&#60;/p&#62;
&#60;p&#62;When I first tried to port my Arduino code for use on the Maple I converted all the Serial.print() and Serial.println() instructions SerialUSB.print() and SerialUSB.println() instructions.  My code does not have any &#34;serial&#34; instruction, only &#34;serialusb&#34;.  However, I will double check my code next week.&#60;/p&#62;
&#60;p&#62;Yes, it would be great for users in many different fields if the Maple can be used as a DAQ board.  The Maple (at $50) is more expensive than the $30 Arduino, but the extra $20 is worth it for users who need built-in 12-bit ADC (without soldering an external 12-bit ADC circuit).  Initially, I decided to focus on data input (using ADC) because it is easier (ie, more &#34;passive&#34;).  Bnewbold, you have anticipated my future need to use PWM outputs to turn on/off lights and other environmental controls.&#60;/p&#62;
&#60;p&#62;My background is not in engineering, so I am completely new to implementing &#34;isochronous USB channel&#34;.  Can you recommend any resources which I can read?  I can be more helpful to this project if someone points me in the right direction.&#60;/p&#62;
&#60;p&#62;Thanks again for the help.  Have a restful weekend.&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128#post-778</link>
			<pubDate>Thu, 19 Aug 2010 18:42:01 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">778@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Stephen!&#60;/p&#62;
&#60;p&#62;The root of this problem is most commonly something in your usercode which is mucking up the SerialUSB interface, which then prevents the IDE from auto-resetting the board and uploading new code. &#60;/p&#62;
&#60;p&#62;If the status LED blinks at start that means the bootloader is intact and the fix is pretty easy: enter &#34;perpetual bootloader&#34; mode by holding the BUT button while tapping the RESET button. The status LED should blink continuously, after which you can release BUT and try to upload a new program. The IDE will initially complain that it can't find the Maple serial device (COM port), but the IDE will then search for the Maple DFU device and upload to that. Getting in to perpetual bootloader mode might take one or two tries but the continual blinking will let you know when you're there.&#60;/p&#62;
&#60;p&#62;If that doesn't work for you for whatever reason there are some other things to try (using a seperate serial device) but I bet this is the problem.&#60;/p&#62;
&#60;p&#62;This happens to me a lot when I try to use a serial port (Serial2.println()) which does not have a begin declaration (Serial2.begin(9600) or similar) in the setup() function; perhaps you have one floating somewhere in your code? &#60;/p&#62;
&#60;p&#62;Any other &#34;hardfault&#34; (like a divide by zero) could also cause a hard lock, though usually this will cause the status LED to fade in and out. If you post your code I can scan through it or run it in debug mode and see where it's hanging up.&#60;/p&#62;
&#60;p&#62;FWIW, what you're trying to do sounds pretty cool! It's amazing how much NI charges for data collection boards and this is a project that i'm definitely in. I would love to get some sort of isochronous USB channel (which has guaranteed timing and bandwidth, unlike the CDC/ACM-based SerialUSB) to do data collection and drive PWM outputs using mathematica, labview, scilab, etc. &#60;/p&#62;
&#60;p&#62;Messing with the USB stack will be a longer term project though, it's cool you're getting something up and running! These web services may be interest as well:&#60;br /&#62;
&#60;a href=&#34;http://cloud.labjack.com/&#34; rel=&#34;nofollow&#34;&#62;http://cloud.labjack.com/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.pachube.com/&#34; rel=&#34;nofollow&#34;&#62;http://www.pachube.com/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128#post-777</link>
			<pubDate>Thu, 19 Aug 2010 18:18:57 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">777@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello again,&#60;/p&#62;
&#60;p&#62;I found a partial solution to the problem I posted earlier today.&#60;/p&#62;
&#60;p&#62;By placing the Maple into &#34;perpetual boot mode&#34; I managed to get control of the board (Rev 3; summer 2010).  For more details:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=76#post-407&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=76#post-407&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I can upload upload the Blink program to the RAM, but I cannot get it to load into the FLASH memory.&#60;/p&#62;
&#60;p&#62;For the moment I am not too worried about the FLASH memory, because I now have access to the board.&#60;/p&#62;
&#60;p&#62;Does anyone have any experience with LabVIEW-Maple serial communication?&#60;/p&#62;
&#60;p&#62;Thanks for your help.&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Did my LabVIEW VI Code fry my Maple Rev 3 board?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=128#post-773</link>
			<pubDate>Thu, 19 Aug 2010 16:41:52 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">773@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I am playing with a Maple board (Rev 3, Summer 2010).  A great product.&#60;/p&#62;
&#60;p&#62;I am running the Maple-IDE software version 0.0.6 on a 1 GHz Pentium III Thinkpad with 512 Meg RAM running Windows XP SP3.&#60;/p&#62;
&#60;p&#62;I am powering the Maple using the USB cable.  I have not tried using battery power.  I have not moved any of the power &#34;jumpers&#34;.  Only the &#34;USB&#34; power pins are connected.&#60;/p&#62;
&#60;p&#62;I do not know if I fried my Maple board yesterday when I was trying to port code which works on an Arduino Duemilanove board (ATMega328 chip).  Currently, the board is not completely dead, because the blue LED flashes when I first plug in the USB cable and when I press the RESET button the Maple responds with several fast LED flashes followed by several slow LED flashes.  However, at this point the LED stops flashing.&#60;/p&#62;
&#60;p&#62;Unfortunately, the Maple-IDE does not see the board (which was on COM7) which means I cannot attempt to load a simple Blink program.  The Maple board is not listed under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34;.&#60;/p&#62;
&#60;p&#62;I tried another Windows XP SP3 system, but the second system does not recognize the Maple board (eliminating the possibility that the problem is a Maple-IDE or system configuration change).  Something on the Maple board itself has been altered.&#60;/p&#62;
&#60;p&#62;Is there anyway to &#34;reset&#34; the Maple board back to the factory state?&#60;/p&#62;
&#60;p&#62;Here is more background information regarding the project:&#60;/p&#62;
&#60;p&#62;I am very interested using Arduino/Maple boards to connect external analog sensors to a computer.  I am trying to switch from the Arduino to the Maple, because the Maple has 12-bit ADC (0-4095) vs 10-bit ADC (0-1023) for the Arduino.  I am also hoping the faster clock rate of the Maple should permit faster ADC.&#60;/p&#62;
&#60;p&#62;Earlier this year I wrote a LabVIEW VI which communicates with an Arduino Duemilanove board.  A LabVIEW &#34;VI&#34; is simply a program.  Using the LabVIEW VI the user is able to select an ADC channel.  The chosen ADC channel is sent to the Arduino board using LabVIEW &#34;serial VISA&#34; commands.  Arduino reads the chosen ADC channel and then the converted value is sent back to LabVIEW which graphs the ADC value (and writes the value to a simple data file).  Using an Arduino Duemilanove I am able to achieve 20 data points per second.&#60;/p&#62;
&#60;p&#62;The LabVIEW VI is very basic.  My code works even though it does not contain any handshaking.&#60;/p&#62;
&#60;p&#62;The original Arduino code uses Serial.read(), Serial.print(), and Serial.println().  I modified the Maple code to use SerialUSB.read(), SerialUSB.print(), and SerialUSB.println().&#60;/p&#62;
&#60;p&#62;At first, I was optimistic about the port.  After starting the LabVIEW VI I could get five or ten data points sent from the Maple graphed and saved.  However, at this point the LabVIEW VI would stop graphing, although the blue LED would flash indicating the Maple sketch was waiting for a command from the LabVIEW VI.&#60;/p&#62;
&#60;p&#62;It did not make a difference if I selected &#34;Board &#38;gt;&#38;gt; Leaflabs Maple R3 to flash&#34; or &#34;Board &#38;gt;&#38;gt; Leaflabs R3 Maple to RAM&#34;.&#60;/p&#62;
&#60;p&#62;To help with the debugging, which I assumed was a handshaking problem, I minimized the Maple-IDE code.  Unfortunately, this is when something happened to the Maple which prevents me from uploading any Maple sketches (such as Blink).  Under &#34;Tools &#38;gt;&#38;gt; Serial Port&#34; the Maple is not listed.&#60;/p&#62;
&#60;p&#62;Any ideas for how I can communicate with the Maple?&#60;/p&#62;
&#60;p&#62;I am very new to microcontrollers.&#60;/p&#62;
&#60;p&#62;Thanks for your help.&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
