<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Bus Pirate: Firmware upgrades on Linux, OSX</title>
	<atom:link href="http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/</link>
	<description>A new open source hardware project every month</description>
	<lastBuildDate>Fri, 30 Jul 2010 00:21:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: John</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-3349</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 26 Jul 2010 14:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-3349</guid>
		<description>I panicked too soon.  I continued to follow the instructions (derp) and ran this next (with the jumper in place):
./pirate-loader_lnx --dev=/dev/ttyUSB0 --hex=BPv3\&amp;v2go/BPv3-Firmware-v5.0.hex

and lo and behold, success.  Sorry I got jumpy, thanks to the devs for making this more idiot-proof than I anticipated.

John</description>
		<content:encoded><![CDATA[<p>I panicked too soon.  I continued to follow the instructions (derp) and ran this next (with the jumper in place):<br />
./pirate-loader_lnx &#8211;dev=/dev/ttyUSB0 &#8211;hex=BPv3\&amp;v2go/BPv3-Firmware-v5.0.hex</p>
<p>and lo and behold, success.  Sorry I got jumpy, thanks to the devs for making this more idiot-proof than I anticipated.</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-3348</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 26 Jul 2010 14:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-3348</guid>
		<description>Well, I got impatient and it looks like I bricked my brand new BP within 20 minutes of unsealing it.
I did the first part of the bootloader upgrade:
python ./P24qp.py -a BPv3-v2blupdaterVa3-v4.1.hex -s /dev/ttyUSB0 -v
.....
Reading 256 bytes from address 0x0000AB80
Write operation complete.
Verified Okay.
        Verification complete, switching to user mode

Then rebooted it with minicom attached and typed &quot;yes&quot; when it asked me if I was sure I wanted to overwrite the bootloader:
Found bootloader v unknown (probably v2)
Will install bootloader v4.1

Type &#039;Yes&#039; to program the new bootloader.
Disconnect power if unsure (no harm done).

yes

Erasing 0xA400... done
Erasing 0xA800... done
Writing row 0 1 2 3 4 5 6 7 done
Erasing 0x0000... done
Writing row 0... done

Success!
Upload new firmware with the ds30 Loader app to complete the upgrade.

This is where I screwed up.
I tried to upload a second .hex file:
johng@bugsy:~/tmp/upgrader$ python ./P24qp.py -a ../v4firmware/BPv3-Firmware-v4.1.hex -s /dev/ttyUSB0 -v
Using Serial Port /dev/ttyUSB0 @ 9600
Reading 4 bytes from address 0x00FF0000
RX Error:  0  bytes received
        Error reading from device!
Device with ID: 65535 not listed in the config file!

and now I&#039;ve got nothing.  even P24qp.py -i -s /dev/ttyUSB0 returns nothing but an error.    I get nothing at the serial prompt, either.
I don&#039;t own a PIC programmer (yet).

Where do I go from here?
John</description>
		<content:encoded><![CDATA[<p>Well, I got impatient and it looks like I bricked my brand new BP within 20 minutes of unsealing it.<br />
I did the first part of the bootloader upgrade:<br />
python ./P24qp.py -a BPv3-v2blupdaterVa3-v4.1.hex -s /dev/ttyUSB0 -v<br />
&#8230;..<br />
Reading 256 bytes from address 0&#215;0000AB80<br />
Write operation complete.<br />
Verified Okay.<br />
        Verification complete, switching to user mode</p>
<p>Then rebooted it with minicom attached and typed &#8220;yes&#8221; when it asked me if I was sure I wanted to overwrite the bootloader:<br />
Found bootloader v unknown (probably v2)<br />
Will install bootloader v4.1</p>
<p>Type &#8216;Yes&#8217; to program the new bootloader.<br />
Disconnect power if unsure (no harm done).</p>
<p>yes</p>
<p>Erasing 0xA400&#8230; done<br />
Erasing 0xA800&#8230; done<br />
Writing row 0 1 2 3 4 5 6 7 done<br />
Erasing 0&#215;0000&#8230; done<br />
Writing row 0&#8230; done</p>
<p>Success!<br />
Upload new firmware with the ds30 Loader app to complete the upgrade.</p>
<p>This is where I screwed up.<br />
I tried to upload a second .hex file:<br />
johng@bugsy:~/tmp/upgrader$ python ./P24qp.py -a ../v4firmware/BPv3-Firmware-v4.1.hex -s /dev/ttyUSB0 -v<br />
Using Serial Port /dev/ttyUSB0 @ 9600<br />
Reading 4 bytes from address 0&#215;00FF0000<br />
RX Error:  0  bytes received<br />
        Error reading from device!<br />
Device with ID: 65535 not listed in the config file!</p>
<p>and now I&#8217;ve got nothing.  even P24qp.py -i -s /dev/ttyUSB0 returns nothing but an error.    I get nothing at the serial prompt, either.<br />
I don&#8217;t own a PIC programmer (yet).</p>
<p>Where do I go from here?<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2623</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Mon, 31 May 2010 09:29:51 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2623</guid>
		<description>No problem, I glad you got it working. Thanks for the update.</description>
		<content:encoded><![CDATA[<p>No problem, I glad you got it working. Thanks for the update.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tijs</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2622</link>
		<dc:creator>Tijs</dc:creator>
		<pubDate>Mon, 31 May 2010 09:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2622</guid>
		<description>I downloaded the laters (4.2) bootloader hex into the BP with a pic programmer, used the bootloader to install the firmware. Everything is working fine again! (needed a programmer though, so for anybody else: DO NOT USE P24qp.py TO PROGRAM v4 firm, NEVER. Only the bootloader-upgrader. As stated above..)

Thanx Ian.</description>
		<content:encoded><![CDATA[<p>I downloaded the laters (4.2) bootloader hex into the BP with a pic programmer, used the bootloader to install the firmware. Everything is working fine again! (needed a programmer though, so for anybody else: DO NOT USE P24qp.py TO PROGRAM v4 firm, NEVER. Only the bootloader-upgrader. As stated above..)</p>
<p>Thanx Ian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2529</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Thu, 27 May 2010 11:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2529</guid>
		<description>the updater does, but you shouldn&#039;t use that, it installs the new bootloader using the old one. Download the latest firmware archive and use the bootloader.hex from there.</description>
		<content:encoded><![CDATA[<p>the updater does, but you shouldn&#8217;t use that, it installs the new bootloader using the old one. Download the latest firmware archive and use the bootloader.hex from there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tijs</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2528</link>
		<dc:creator>Tijs</dc:creator>
		<pubDate>Thu, 27 May 2010 11:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2528</guid>
		<description>So the bootloader hex (BPv3-v2blupdaterVa3-v4.1.hex) does contain the config word? (I dont want to keep programming the pic with 5v... So hoping that once will be enough)</description>
		<content:encoded><![CDATA[<p>So the bootloader hex (BPv3-v2blupdaterVa3-v4.1.hex) does contain the config word? (I dont want to keep programming the pic with 5v&#8230; So hoping that once will be enough)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2527</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Thu, 27 May 2010 11:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2527</guid>
		<description>No problem, sorry about the confusion. The bootloader and firmware are separate. Program the bootloader .hex with the programmer, then connect with the bootloader and load the firmware.</description>
		<content:encoded><![CDATA[<p>No problem, sorry about the confusion. The bootloader and firmware are separate. Program the bootloader .hex with the programmer, then connect with the bootloader and load the firmware.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tijs</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2526</link>
		<dc:creator>Tijs</dc:creator>
		<pubDate>Thu, 27 May 2010 11:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2526</guid>
		<description>Thanx by the way ;)</description>
		<content:encoded><![CDATA[<p>Thanx by the way ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tijs</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2525</link>
		<dc:creator>Tijs</dc:creator>
		<pubDate>Thu, 27 May 2010 11:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2525</guid>
		<description>Yes i did try to upload the v4 firmware. (Because i thought the bootloader upgrade worked)
After that i was able to connect to the BP once and it said &quot;Firmware version 4.1, bootloader 255.255&quot; Next powerup it was gone. 

I think the v4 fw try screwed the config word indeed and it now runs with the wrong clock in mind. Ill try to flash it with the 5v programmer...

Does the v4 firmware contain everything? config+firmware+bootloader? I mean if i get that hex in, is the procedure then completed? Or should i just try to set the config word only and then install the bootloader again? (since 1.2 is obviously still in there..)
And what is the config word then?</description>
		<content:encoded><![CDATA[<p>Yes i did try to upload the v4 firmware. (Because i thought the bootloader upgrade worked)<br />
After that i was able to connect to the BP once and it said &#8220;Firmware version 4.1, bootloader 255.255&#8243; Next powerup it was gone. </p>
<p>I think the v4 fw try screwed the config word indeed and it now runs with the wrong clock in mind. Ill try to flash it with the 5v programmer&#8230;</p>
<p>Does the v4 firmware contain everything? config+firmware+bootloader? I mean if i get that hex in, is the procedure then completed? Or should i just try to set the config word only and then install the bootloader again? (since 1.2 is obviously still in there..)<br />
And what is the config word then?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://dangerousprototypes.com/2009/08/06/bus-pirate-firmware-upgrades-on-linux-osx/#comment-2524</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Thu, 27 May 2010 11:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://dangerousprototypes.com/?p=285#comment-2524</guid>
		<description>I&#039;m not really sure, the updater contains the config bits and you should be able to bootload it as much as you want without problem. Did you try to upload the actual v4 firmware with the .py uploader as well? That will do it every time :( 

I&#039;m not sure about the programmer. SparkFun shipped a bunch with 5volt regulators instead of 3v3 regulators, and they worked fine (for a while...). You might be able to get away with programming the PIC at 5volts if the programmer supports the 24fj64ga002.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not really sure, the updater contains the config bits and you should be able to bootload it as much as you want without problem. Did you try to upload the actual v4 firmware with the .py uploader as well? That will do it every time :( </p>
<p>I&#8217;m not sure about the programmer. SparkFun shipped a bunch with 5volt regulators instead of 3v3 regulators, and they worked fine (for a while&#8230;). You might be able to get away with programming the PIC at 5volts if the programmer supports the 24fj64ga002.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
