<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — SD3 logic board DEAD !!]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/5314/" />
	<updated>2014-01-31T06:38:15Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/5314/sd3-logic-board-dead/</id>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/48308/#p48308" />
			<content type="html"><![CDATA[<p>Now that made perfect sense.&nbsp; Thanks.</p><p>I really don&#039;t need the bootloader now that I have the ICSP. So now I just need to make a few tweaks to get a panel and the SD card going.</p><p>Any hints on how to get the SD card functional?</p><p><em>Edit:</em></p><p>Well, it looks like I just got it working.</p><p>I just had to enable SDSUPPORT in the configuration.h</p><p>I can copy things to the card and I can see it&#039;s contents in the SD card Manager in Repetier.&nbsp; So far so good.&nbsp; Now I need to get a control panel....</p>]]></content>
			<author>
				<name><![CDATA[pirvan]]></name>
				<uri>https://www.soliforum.com/user/1357/</uri>
			</author>
			<updated>2014-01-31T06:38:15Z</updated>
			<id>https://www.soliforum.com/post/48308/#p48308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/48306/#p48306" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pirvan wrote:</cite><blockquote><p>SO what did I do wrong that I don&#039;t have a bootloader?</p><p>You had also mentioned earlier that getting the SD card to work is doable, but a chore.&nbsp; How do I enable it? or would it be better to get a LCD panel that has the card and use that, like the Viki, or any other recommendations?</p></blockquote></div><p>&quot;Bootloader&quot; is a tad misleading in the context of AVR microcontrollers.</p><p>For making this discussion easier - lets use the terms &#039;sketch&#039; to mean &#039;arduino platform based source code&#039; and the word &#039;Bootloader&#039; to mean &quot;the thingy that detects when I want to load a sketch and lets me upload it&quot; . And for purists - no these are not the correct memory addresses etc - this is written to explain the concept not for technical application itself <img src="https://www.soliforum.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Now, when an AVR turns on, it reads its memory and starts running <strong>whatever code is in memory and starts at address 0</strong>. </p><p>The &#039;Bootloader&#039; is actually just a special kind of &#039;sketch&#039;... Its the guts of whats needed to &#039;bootstrap&#039; the AVR to the barest minimum to get some sort of comms working, usually serial but nowdays increasingly USB handlers. After its done that, it usually has some sort of &#039;trigger condition&#039;, and once thats been met or expired (such as timeout based ones on the arduino bootloader) its told to go and load the &#039;sketch&#039; (or &#039;rest of the code fragments&#039;) from a certain address onwards - lets call it &quot;<strong>2048</strong>&quot; for conversational purposes.</p><p>The &#039;bootloader&#039; if it receives the trigger its setup for (jumpers on pins, hello commands from avrdude, etc) then it will switch to listening on whatever comms port, and receive the downloaded file (it doesn&#039;t care what, hence why you can &#039;load the wrong firmware&#039;) and sticks it in from location 2048 onwards. This is what happens when you upload via Arduino IDE using the &#039;arduino bootloader&#039; - your &#039;sketch&#039; is received by the &#039;bootloader&#039; (which is really just another sketch at address 0) and the bootloader puts it in from 2048 onwards.</p><p>When you reset the board, the bootloader, living at address 0, runs. The code waits for the trigger, and this time, not being met (no upload inside 2 seconds, no jumper, etc) it just goes straight on to load <strong>whatever lives at 2048 onwards</strong>.</p><p>Now - If you upload using an ICSP programmer (usbtiny etc), it doesn&#039;t pay any attention to this. It instead uses the raw &#039;shutup and take my file&#039; commands to the AVR and <strong>whatever it transmits starts living at address 0 onwards</strong>. This is how one gets around the &#039;chicken and the egg&#039; problem of loading a bootloader without a &#039;bootloader&#039;. This is why the &#039;Burn Bootloader&#039; options under Arduino IDE need you to also setup a &#039;programmer&#039; and can&#039;t use the built in bootloader... since that bootloader on the board no matter how much you ask it to will <strong>always</strong> load the received file to address 2048 - Useless for a &#039;bootloader&#039;.</p><p>The same happens if you use avrdude and a programmer, or arduino ide and the &#039;upload using programmer&#039; option. The uploaded file lives at address 0 - so it gets run every time and there simply is no &#039;bootloader&#039; to accept further programs. One must use either programmer again, or load a &#039;sketch&#039; that does the appropriate bootloader things one wants so that it lives at address 0.</p><p>So how do they get the bootloader and the default &#039;sketch&#039; onto the AVR before it ships, or back at the arduino factory how do they load it so that it has bootloader+blink running ?</p><p>What they do is - Load the bootloader to one AVR, and then using the &#039;bootloader method&#039; (so serial via arduino ide, usb for hidbootloader, etc) load the sketch they want onto the AVR. It now behaves how one would want - loads bootloader, checks trigger states, then runs blink/marlin/whatever. They then use the ICSP to &#039;read back&#039; the <strong>entire</strong> loaded memory on the AVR. This gives them a brand new .hex file that now contains the bootloader at address 0 AND the &#039;running sketch&#039; at address 2048 onwards... and when they load this to other AVR&#039;s they also now have the &#039;bootloader&#039; and &#039;sketch&#039; running - which is as this all explains really just one long piece of firmware loaded from address 0 onwards&nbsp; <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>So thats why, once you upload using a programmer directly, you &#039;kill off&#039; the bootloader. To restore it now - simply follow the instructions at the page I already linked above at lincomatics blog - he covers how to load either of the 3 bootloaders. </p><p>Why your bootloader didn&#039;t work originally - It probably did, just wrong method used. Can&#039;t tell you what, as I dont have a generic geeetech board, and there really is about 5 different ways you can program them, so when you don&#039;t know for sure, it really is a matter of trial and error. Often just bypassing it and loading a known good bootloader using an ICSP programmer is definately far easier! <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>There you go - hope that shed some light on the whole subject and didn&#039;t just confuse it more <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Re the SD card - personally I&#039;d just do it in combo with an LCD... its pretty useless without an LCD anyway. But if you read the latest beta firmware thread over in software/firmware, it covers it all in gritty detail.</p>]]></content>
			<author>
				<name><![CDATA[adrian]]></name>
				<uri>https://www.soliforum.com/user/663/</uri>
			</author>
			<updated>2014-01-31T06:16:29Z</updated>
			<id>https://www.soliforum.com/post/48306/#p48306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/48304/#p48304" />
			<content type="html"><![CDATA[<p>SO what did I do wrong that I don&#039;t have a bootloader?</p><p>You had also mentioned earlier that getting the SD card to work is doable, but a chore.&nbsp; How do I enable it? or would it be better to get a LCD panel that has the card and use that, like the Viki, or any other recommendations?</p>]]></content>
			<author>
				<name><![CDATA[pirvan]]></name>
				<uri>https://www.soliforum.com/user/1357/</uri>
			</author>
			<updated>2014-01-31T05:54:28Z</updated>
			<id>https://www.soliforum.com/post/48304/#p48304</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/48301/#p48301" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>pirvan wrote:</cite><blockquote><p>Another anomaly I found is that I can connect to the board using Repetier, whether I have the boot jumper on or off.&nbsp; On Rev.D boards, the jumper should be OFF if I want to boot the firmware, but in my case I seem to be able to boot and connect to the Solidoodle firmware regardless of the jumper position.</p></blockquote></div><p>The pin check on boot re the Boot jumper is part of the firmware - not the chip itself. No bootloader means it doesn&#039;t pay any attention to that jumper.</p>]]></content>
			<author>
				<name><![CDATA[adrian]]></name>
				<uri>https://www.soliforum.com/user/663/</uri>
			</author>
			<updated>2014-01-31T05:42:48Z</updated>
			<id>https://www.soliforum.com/post/48301/#p48301</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/48296/#p48296" />
			<content type="html"><![CDATA[<p>Today I received my USBasp programmer, and set out to recover my dead Printrboard.&nbsp; I first tried to flash the DFU bootloader, and it looks like it flashes it, and verifies it.</p><p>But when I plug the Printrboard in the USB, and I get nothing.&nbsp; Windows doesn&#039;t recognize the board at all, no COM ports, nada.&nbsp; I also tried the CDC bootloader, and still nothing.&nbsp; </p><p>One thing I noticed that looked strange, is that when I flash the bootloader which is only 11K in size, avrdude reports it&#039;s flashing 131072 bytes, which is 128k, the total size of the flash.&nbsp; Is this normal?</p><p>Anyway, I then tried flashing the Solidoodle firmware hex file.&nbsp; This time the flash process says it flashing 62358 bytes, which is correct, and it also takes substantially longer to perform the flash.&nbsp; After it was done, I unplugged the programmer, plugged the board in the USB port and hit reset a couple of times.&nbsp; Lo-and-behold, it posted, and Windows installed it on COM4.</p><p>I also started Repetier and connected to it too, and issued a few command like M501 to see what&#039;s in the EEPROM.&nbsp; </p><p>So it seems to work, but it still doesn&#039;t look like I have a bootloader.&nbsp; I mean, now that I have a programmer, it&#039;s no big deal if it doesn&#039;t have a bootloader, but I&#039;d like to find out what I did wrong.</p><p>Another anomaly I found is that I can connect to the board using Repetier, whether I have the boot jumper on or off.&nbsp; On Rev.D boards, the jumper should be OFF if I want to boot the firmware, but in my case I seem to be able to boot and connect to the Solidoodle firmware regardless of the jumper position.</p>]]></content>
			<author>
				<name><![CDATA[pirvan]]></name>
				<uri>https://www.soliforum.com/user/1357/</uri>
			</author>
			<updated>2014-01-31T05:26:36Z</updated>
			<id>https://www.soliforum.com/post/48296/#p48296</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47903/#p47903" />
			<content type="html"><![CDATA[<p>Yeah, usbtiny for less than $10 from Geeetech or Ebay. You can get your firmware and bootloader straightened out.</p>]]></content>
			<author>
				<name><![CDATA[Hazer]]></name>
				<uri>https://www.soliforum.com/user/2747/</uri>
			</author>
			<updated>2014-01-27T22:19:34Z</updated>
			<id>https://www.soliforum.com/post/47903/#p47903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47902/#p47902" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>spapadim wrote:</cite><blockquote><div class="quotebox"><cite>adrian wrote:</cite><blockquote><p>Highest potential wins... so... its dead jim. No short necessary.</p></blockquote></div><p>Not an expert, but curious: He applied 7V to the fan, but why would that bring the 5V bus to 12V?&nbsp; My multimeter on a 40mm fan reads 20MOhm...</p></blockquote></div><p>I think that when I connected the fan, I connected the ground to the 12V pin and the + to the 5V pin.&nbsp; The power LED on the PB cut out and the fan didn&#039;t spin.&nbsp; When I realized I plugged it into the wrong pins, I pulled the plug and plugged it in correctly, but by then it was too late.</p><p>If I&#039;d have plugged the + into 12V and the ground into the 5V I wouldn&#039;t have had the problem, as you said I&#039;d be running the fan at 7V, but plugging it backward resulted in the firmware being zapped.</p><p>Luckily I was able to re-flash the firmware and save the board.</p>]]></content>
			<author>
				<name><![CDATA[pirvan]]></name>
				<uri>https://www.soliforum.com/user/1357/</uri>
			</author>
			<updated>2014-01-27T22:11:03Z</updated>
			<id>https://www.soliforum.com/post/47902/#p47902</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47895/#p47895" />
			<content type="html"><![CDATA[<p>There are a lot of factors here <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> not to mention which way he connected the fan(matters) 20mohms seems a little high for a fan that can draw around 50 ma at 12v but since it is a dc to ac converter in front of the fan that reading doesn&#039;t mean much.</p>]]></content>
			<author>
				<name><![CDATA[ronsii]]></name>
				<uri>https://www.soliforum.com/user/296/</uri>
			</author>
			<updated>2014-01-27T21:35:04Z</updated>
			<id>https://www.soliforum.com/post/47895/#p47895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47890/#p47890" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>adrian wrote:</cite><blockquote><p>Highest potential wins... so... its dead jim. No short necessary.</p></blockquote></div><p>Not an expert, but curious: He applied 7V to the fan, but why would that bring the 5V bus to 12V?&nbsp; My multimeter on a 40mm fan reads 20MOhm...</p>]]></content>
			<author>
				<name><![CDATA[spapadim]]></name>
				<uri>https://www.soliforum.com/user/1993/</uri>
			</author>
			<updated>2014-01-27T20:55:54Z</updated>
			<id>https://www.soliforum.com/post/47890/#p47890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47865/#p47865" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hazer wrote:</cite><blockquote><p>OK. So there are two parts of the MCU memory: The standard part (where the printer firmware goes) and the bootloader part. When you run the bootloader, it will overwrite the standard memory area but not the bootloader area. So, you may have corrupted the firmware that was on the standard area, but the bootloader will still be there.</p><p>Remember, you have to have the jumper on the boot pins next to the MCU, then press the reset button. Your computer will recognize the CDC USB device (the bootloader) and assign it a COM port in your device manager.</p></blockquote></div><p>Naah, it&#039;s gone.&nbsp; I plugged it in this morning, and it no longer even gets a &quot;ba-bong&quot; of recognition from Windows. With or without the jumper, hitting the reset, nothing.</p><p>Gone baby gone.</p><p>I might buy an ISP to see if I can revive it, but now I remember why I have such an aversion to flashing stuff.&nbsp; I just can&#039;t believe that in this day and age we should still have such a hard time with this.</p>]]></content>
			<author>
				<name><![CDATA[pirvan]]></name>
				<uri>https://www.soliforum.com/user/1357/</uri>
			</author>
			<updated>2014-01-27T15:26:37Z</updated>
			<id>https://www.soliforum.com/post/47865/#p47865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47864/#p47864" />
			<content type="html"><![CDATA[<p>One of the reasons I like using my AVR ISP mkII to upload firmware, no bootloaders to deal with :-). You can get a usbtiny ISP pretty cheap, or even use an arduino board as an ISP by loading the right firmware on it. All of these will let you bypass bootloaders.</p>]]></content>
			<author>
				<name><![CDATA[Claghorn]]></name>
				<uri>https://www.soliforum.com/user/270/</uri>
			</author>
			<updated>2014-01-27T14:47:11Z</updated>
			<id>https://www.soliforum.com/post/47864/#p47864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47862/#p47862" />
			<content type="html"><![CDATA[<p>OK. So there are two parts of the MCU memory: The standard part (where the printer firmware goes) and the bootloader part. When you run the bootloader, it will overwrite the standard memory area but not the bootloader area. So, you may have corrupted the firmware that was on the standard area, but the bootloader will still be there.</p><p>Remember, you have to have the jumper on the boot pins next to the MCU, then press the reset button. Your computer will recognize the CDC USB device (the bootloader) and assign it a COM port in your device manager.</p>]]></content>
			<author>
				<name><![CDATA[Hazer]]></name>
				<uri>https://www.soliforum.com/user/2747/</uri>
			</author>
			<updated>2014-01-27T11:54:57Z</updated>
			<id>https://www.soliforum.com/post/47862/#p47862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47853/#p47853" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hazer wrote:</cite><blockquote><p>Quick way to check CDC bootloader:<br />avrdude -c avr109 -P COM# -p at90usb1286 -U flash:r:test.hex:i</p></blockquote></div><p>So it looks like I do have a CDC bootloader.&nbsp; I wish I could copy the text output, but I can&#039;t seem to capture or redirect it.&nbsp; But here is what I get when I run the command:</p><p>Found programmer: Id = &quot;LUFACDC&quot;, type =S<br />&nbsp; &nbsp; &nbsp; &nbsp; Software Version = 1.0; No hardware version given.<br />Programmer supports auto addr increment.<br />Programmer supports buffered memory access with buffersize=256 bytes.</p><p>Programmer supports the following devices:<br />&nbsp; &nbsp; &nbsp; &nbsp; Device Code: 0x44<br />.....<br />Since this command worked, I tried to flash the firmware again, and this time it started doing it, except it stopped at 92% and it didn&#039;t finish.&nbsp; After about 10 minutes I hit the reset button, and got a:</p><p>avrdude: ser_send(): write error: sorry no info avail.</p><p>And the board is now bricked. <img src="https://www.soliforum.com/img/smilies/sad.png" width="15" height="15" alt="sad" /> . The board is no longer showing up in the device manager, even though I can hear it (Windows recognizes it) when I plug it in, the device manager &quot;blinks&quot; but there&#039;s no new device anywhere (USB, COM ports, HID devices, etc...).</p><p>Gotta love this...</p>]]></content>
			<author>
				<name><![CDATA[pirvan]]></name>
				<uri>https://www.soliforum.com/user/1357/</uri>
			</author>
			<updated>2014-01-27T07:49:45Z</updated>
			<id>https://www.soliforum.com/post/47853/#p47853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47852/#p47852" />
			<content type="html"><![CDATA[<p>Did you install the .inf file for the CDC loader, and attach the printrboard in bootloader mode (with jumper installed) and then checked in device manager all the drivers are installed ?</p>]]></content>
			<author>
				<name><![CDATA[adrian]]></name>
				<uri>https://www.soliforum.com/user/663/</uri>
			</author>
			<updated>2014-01-27T06:56:26Z</updated>
			<id>https://www.soliforum.com/post/47852/#p47852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: SD3 logic board DEAD !!]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/47851/#p47851" />
			<content type="html"><![CDATA[<p>Well, I spent almost 2 hours trying to no avail to upload something... anything to the Printrboard.</p><p>Whenever I try to upload the bootloader, I get an error:</p><p>Could not find USB device 0x1781/0xc9f</p><p>I assume this error is because it&#039;s looking for a programmer, and I don&#039;t have one.&nbsp; So this means I have to try to install the firmware by trial and error since I don&#039;t know what bootloader I actually have.</p><p>I first tried the CDC version, I got this:<br />&quot;avrdude: butterfly_recv(): programmer is not responding&quot;</p><p>When I try the HID Bootloader, it runs, then says &quot;Waiting for Teensy Device... (hint: press reset button)&quot;. Pressing the reset button, doesn&#039;t do anything (doesn&#039;t start the upload)</p><p>I also tried the FLip program, and when I click the USB connection, I get a AtLibUsbDfu.dll not found error, even though the DLL file is in the same directory as the Flip app.</p><p>So I&#039;m stuck.&nbsp; Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[pirvan]]></name>
				<uri>https://www.soliforum.com/user/1357/</uri>
			</author>
			<updated>2014-01-27T06:54:51Z</updated>
			<id>https://www.soliforum.com/post/47851/#p47851</id>
		</entry>
</feed>
