Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - hcc23

2
Bus Pirate Support / Re: failure during bootloader upgrade (v2 to v4)
Hello again

Sorry for the hiatus, but I had to wait for SeeeStudio's shippment to arrive...

Well, so I now have a new v4 BusPirate and wanted to use that as a PIC programmer to fix my old v3... Unfortunately I couldn't get it done. I will outline what I did and would appreciate any help inresurecting my v3 BusPirate. (I am doing all my work in Windows now, btw.)

The v4 I got gave the following information when plugged in:
Code: [Select]
HiZ>i
Bus Pirate v4
Firmware v6.0-a3
DEVID:0x1019 REVID:0x0004 (24FJ256GB106 UNK)
http://dangerousprototypes.com

I then went to http://dangerousprototypes.com/docs/Pir ... Programmer and followed the connections outlined there, using the 10 pin connector on the v4 and the ICSP header on the v3.

Code: [Select]
v4      |   v3
MOSI --> PGD
CLK  --> PGC
CS    --> VPP/MCLR
GND  --> GND
+3.3V --> VCC

I then connected the v4 via USB to my Windows workstation, downloaded [tt:]picprog[/tt:] from download/file.php?id=1341 (linked to originally at viewtopic.php?t=795#p7690), downloaded the currentBusPirate package v6.1, and ran the following command:

Code: [Select]
E:DownloadsBusPiratepicprog.v0.2>picprog -p buspirate -u COM9 -s 115200 -c 24
FJ64GA002 -t HEX -w ..bootloaderBPv3-Bootloader-v4.4.hex -E -V
(Bus) Pirate PIC Programer v0.2

Initializing interface
115200
Entering binary mode
BP: Setup mode...
Setup peripherals...
(OK)
Found '24FJ64GA002' in programming database :) index = 2
Checking for 24FJ64GA002 attached to programmer...

Wrong device: 0 (ID: 0 REV: 0)

I repeated the command without connectin 3.3V to VCC (http://dangerousprototypes.com/docs/Pir ... Programmer says this is optional) and got exactly the same results...

I am somewhat at a loss here as I thought the the picprogramer is more or less as low-level as it gets and should be able to get even a completely empty/corrupted PIC to work... Well, not for me...

As such, any hints and tips are greatly appreciated :)
Thanks!
3
Bus Pirate Support / Re: failure during bootloader upgrade (v2 to v4)
OK, looks like I have to get some new toys, i.e. a new BusPirate v4

Looking through the site though, I noticed the Bus Blaster, which seems to be mainly targeted towards being used as a JTAG gadget (and I don't own one yet). So, although apparently being discontinued (but I assume that is still is somewhat functional), could I use a Bus Blaster to reflash my old v3 Bus Pirate? That way I won't end up having two (nearly) identical thingies sitting on my desk...
4
Bus Pirate Support / Re: failure during bootloader upgrade (v2 to v4)
Darn.... I hoped I'd get away without having to reflash the bootloader...

Well, unfortunately I neither have another Bus Pirate lying around (just an Arduino Uno and some simulated STK500 programmers) nor do I have any experience in programmings PICs - resulting in many questions...

I googled a little and found some related websites, although nothing that I could identify as noob-proof turnkey solution:

1. http://forum.arduino.cc/index.php/topic,92929.0.html
This one doesn't seem to support 24FJ PICs, which I understand to be the one used on the BusPirate.

2. viewtopic.php?f=28&t=3093#p32734
This one seems to need an Atmega8 for some 3.3V compatibility and I only have a 5V Arduino Uno

3. http://dangerousprototypes.com/docs/Pir ... Programmer
I am not sure if you referred to this post when stating that I could use another BusPirate to program my bricked one as it seems to rely on some additional hardware, the programming adapter.
Although, I am not 100% sure that adapter would be needed for my case as it seems to be needed only "for older 8 bit PIC 12/14/16/18 devices." Is the BusPirate a "24" device, i.e. can I get away without that programming adapter?

4. http://arduino.cc/en/Tutorial/ArduinoISP
Although being my favorite setup instruction (as it seems fairly noob-friendly) I am not at all sure that ISP (AVR) programming and ICSP (PICs ?) programming are actually the same.

As you see, many questions and (unfortunately) little understanding of the PIC fundamentals. As such, any post pointing to noob-proof "help, fix it" page -- especiall any page using an 5V Arduino -- would be greatly appreciated.
6
Bus Pirate Support / Re: failure during bootloader upgrade (v2 to v4)
Hi tayken

Thank you for taking the time to respond.

If I read http://dangerousprototypes.com/docs/V2_to_v4_upgrades correctly, step 2 asks me to "load the bootloader upgrader." That section then essentially boils down to
Quote
Upload ' BPv3-v2blupdaterva3-v4.1.hex' to the PIC with the existing v2 bootloader. Use your normal upgrade procedure for the v2 bootloader to load the upgrade HEX into the PIC. V2 bootloader instructions for: Windows, GNU/Linux, OSX.
where the links for "upgrade procedure" and "Windows" point to the site that I referenced as the 'Windows way' in my prior post, the link starting from "Linux" points to the site that I referenced as the 'Linux way'...

As such, yes, I tried following the directions from http://dangerousprototypes.com/docs/V2_to_v4_upgrades, but I cannot get the bootloader upgrade to properly show up via the serial console. So I guess I fail at "Step 2" of the v2 to v4 upgrade process.

If you - or anybody else - have ideas how I could bypass the upgrader waiting for my typing in "yes", I would be very thankful.
7
Bus Pirate Support / Re: failure during bootloader upgrade (v2 to v4)
well, here are some "human readable" versions of the links I would have liked to include:

[1] : www[dot]sparkfun[dot]com[slash]product[slash]9544
[2] : code[dot]googl[dot]com[slash]p[slash]the-bus-pirate[slash]downloads[slash]detail?name=v2tov41-bootloader-update-va3[dot]zip
[3] : pastebin[dot]com[slash]PtcSTqUW
8
Bus Pirate Support / failure during bootloader upgrade (v2 to v4)
Hello

I have a SparkFun Bus Pirate (TOL-09544 [1]) from 2009 which has been collecting dust for quite I while. I want(ed) to use it for a current project, but had the apparently not so great idea to upgrade beforehand... Well, as you might have guessed, this didn't work out well -- which is why I am posting here, hoping somebody could point me into a new/different direction (or even better, to a direct solution...)

Here is what I did:

I read http://dangerousprototypes.com/2010/01/ ... 4-upgrade/ and learned that I first need to update the boot loader. That page also stated that the
Quote
v2 bootloader is programmed into every [..] Sparkfun [Bus Pirate]
and that I should follow the "normal upgrade procedure" for to upload [tt:]BPv3-v2blupdaterva3-v4.1.hex[/tt:] from the v4.1-va3 update package [2]...

I initially tried the Linux path, essentially using

Code: [Select]
:~> python P24qp.py -a BPv3-v2blupdaterva3-v4.1.hex -s /dev/ttyUSB0 -v

That didn't really work, so I tried the Windows way , too.

Both essentially result in the same error:

The bootloader upgrade (i.e. uploading [tt:]BPv3-v2blupdaterva3-v4.1.hex[/tt:]) seems to (somewhat) work, but there are verification errors outside the range where I should expect them (i.e. above 0x500, see [3] for a dump of the 'Windows way' error message dump).

Also, after restarting the Bus Pirate without the PGC-PGD jumper (MODE light ist off), I cannot get the 'greeting text' shown on all the screenshots: all I get is total serial console gibberish (I double checked that the baud rate is set to 115200, and also tried all the other usual settings down to 9600 - same result : gibberish, slightly different depending on baud rate).

It appears that whatever bootloader is on the board is still functioning as bridging the PGC and the PGD pins brings up the MODE light and I seem to be able to transfer something to the Bus Pirate (both, in the Linux way as well as in the Windows way) - unfortunately always resulting in the same gibberish on the serial console...

For what it's worth:
I used openSUSE for the 'Linux way' (minicom as the terminal), and Windows 7 Enterprise for the 'Windows way' (Tera Term as the terminal). Both systems are 64bit.

I do have a bunch of STK500 ISP emulatros, but I don't know enough about the non-Atmel world to know if that helps me in reflashing my BusPirate completely via ICSP... (and I also wouldn't know how to do that...)

So again, any help is totally appreciated :)

Thanks.




=====================
I am a first time poster, so apparently I can't have offsite links... so I'll see that I post [1], [2], and [3] as me second post in 24h..

=====================
EDIT: I can post external links now, so here they are:
[1] : http://www.sparkfun.com/product/9544
[2] : http://code.google.com/p/the-bus-pirate ... te-va3.zip
[3] : http://pastebin.com/PtcSTqUW

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01782382664session_write_close ( )...(null):0
20.01822514240ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01822515016Database_MySQL->query( ).../DatabaseHandler.php:119
40.06072653736Database_MySQL->error( ).../Db-mysql.class.php:273