Skip to main content
Topic: New PIC programmer adapter (Read 32125 times) previous topic - next topic

Re: New PIC programmer adapter

Reply #15
Lol I actually think shield is the right name, and that is the concept here.  So we can use it if we want.  I hate it when someone decides so redefine a perfectly good word, and try to claim it as their own.

Re: New PIC programmer adapter

Reply #16
Here's the assembled adapter. It's working. Now to test by programming an actual PIC. The first will be the USB IR Toy, which shouldn't be that much different than the OLS.
Got a question? Please ask in the forum for the fastest answers.

Re: New PIC programmer adapter

Reply #17
Nice looking! I'm following this thread with great interest, waiting from the time when I'll be able to buy this adapter from Seeed.

Ian, you'll drop a post here once the adapter exits the factory, won't you? :)

Re: New PIC programmer adapter

Reply #18
I guess he will even post on the blogs ;)

Re: New PIC programmer adapter

Reply #19
Sure, I'll give you a heads up here and on the blog. It should only be a week or two now :)

I'll also send a free adapter to anyone who submits a significant number of (working) PIC settings, as used in pic.c to define the memory, programming method, etc. of the PIC to be programmed:
http://code.google.com/p/dangerous-prot ... prog/pic.c

I'll be honest and say I get really confused about how some PICs define words and program space, and how to add them to the program. I can't write much of a tutorial on this (yet), but if you write one we can add to the wiki I'll send you an adapter ;)

Code: [Select]
E:Workdp-svntrunkPiratePICprog>picprog -E -u COM12 -p buspirate -s 115200 -c
 18F2550
Pirate PIC Programer

Initializing interface
Entering binary mode
BP: Setup mode...
Setup peripherals...
(OK)
Found '18F2550' in programming database :) index = 0
Checking for 18F2550 attached to programmer...
Found 18F2550 (0X1247, ID: 0X92 REV: 0X7)
Erasing chip... OK :)

E:Workdp-svntrunkPiratePICprog>pause
Press any key to continue . . .

It works to ID and erase a 18F2550 (USB IR Toy, Flash Destroyer) with the latest SVN version of the piratePICprog app. Yeah!

Also interesting to note that there's no problem interfacing a 5.0volt target with the Bus Pirate at 3.3volts. That means programming 5volt targets without awkward hiz modes and pullup resistors.

I attached a version compiled with mingw. Note that it doesn't really validate the input, it just crashes on errors. The PIC name is case sensitive too, so be sure it's all caps. The version will erase/read/program the OLS and another Bus Pirate (18F24J50, 24FJ64GA002) without an adapter. It will erase/read a ir toy (18F2550) with the adapter, probably write but we need to get the memory ranges fixed first.
Got a question? Please ask in the forum for the fastest answers.

Re: New PIC programmer adapter

Reply #20
Does the 18F2550 (or 18F4550) require the high voltage adapter for programming?    The datasheet says "Single-Supply 5V In-Circuit Serial Programming (ICSP) via Two Pins".    I'm new to this so apologies if it's a dumb question.

Thanks,
--Rob

Re: New PIC programmer adapter

Reply #21
Low voltage programming mode on 16/18F is ignored as far as I can tell, I have seen it as the butt of a joke on piclist several times. I think it's most common to use 13V VPP on all 16F and 18F pics, which requires the adapter. I'm not sure why though.
Got a question? Please ask in the forum for the fastest answers.

Re: New PIC programmer adapter

Reply #22
With HVP programming you can totally program the PIC, with LVP you can almost totally program the PIC except some cornercases.

I.e.  the HVP can set/reset the LVP bit, and thus HVP programming will always work, but you need to design your circuit around it (13v tolerant /mclr). I also noticed that new pics have a max  Vpp of 7V instead of 13V.

Re: New PIC programmer adapter

Reply #23
The adapter is now available at seeed for $7. This is intended for developers only, there is NO software support:

http://www.seeedstudio.com/depot/bus-pi ... Path=61_68
Got a question? Please ask in the forum for the fastest answers.


Re: New PIC programmer adapter

Reply #25
When the Bus Pirate PIC programmer becomes generally available, any chance it will also have high voltage programming capability to rescue AVRs that have the fuses set incorrectly?

How different (aside from the connectors) is Bus Pirate High Voltage Programming adapter http://dangerousprototypes.com/2010/02/13/bus-pirate-high-voltage-programming-adapter/ which looks like it may have had AVR HVP capability from the Bus Pirate PIC Programmer adapter that is current in development?

MightyOhm has an Arduino AVR HVP rescue shield http://mightyohm.com/blog/products/avr-hv-rescue-shield/.     However of course it would be nice to get a single HVP adapter for the bus pirate.

Re: New PIC programmer adapter

Reply #26
There aren't enough pins to do the HVP rescue on AVRs, that's why it was scrapped from the v1 adapter.
Got a question? Please ask in the forum for the fastest answers.

Re: New PIC programmer adapter

Reply #27
A few minutes ago, I wanted to test out the usage of my adapter. I opened up the schematics, found the ADC and 3V3 jumper configurations and soldered them (as it seems, these come preconfigured to v3, had to cut some tiny traces between pads before soldering for v2go). Then I tried running the high voltage test, just out of curiosity (plus it is the middle of the night, didn't want to start breadboarding with the 18F4550 board I have) but the test failed. I want to solve this before trying anything with 4550. The command line output is attached (of I hate cmd, you cannot copy anything!), BP has firmware v5.10

Any ideas?

Re: New PIC programmer adapter

Reply #28
The jumpers are indeed configured for v3 (because there are more v3's sold then v2go)

It seems that something is broken in the binmode. Could you try v5.9?

Also you can try the normal buspirate interface:

Code: [Select]
WP <- power and pullup on
A <- should toggle +13V on mlcr
d <- read voltage

THere is a firmware of the buspirate to provide manual picprogramming, so also this topic: http://dangerousprototypes.com/forum/in ... pic=1190.0

BTW to copy from a cmd-box, rightclick, mark, select the output, rightclick :)

Code: [Select]
Microsoft Windows XP [versie 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:Documents and Settingschris>

Re: New PIC programmer adapter

Reply #29
[quote author="Sjaak"]
BTW to copy from a cmd-box, rightclick, mark, select the output, rightclick :)

Code: [Select]
Microsoft Windows XP [versie 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:Documents and Settingschris>
[/quote]

I hate cmd! :) It is waaay easy to copy in PuTTY (i get logfiles for BP ;) ) or shell.

Below is the output form v5.10; first ADC value is jumper in 5v position, second in 3v3 position.

Code: [Select]
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
9. DIO
x. exit(without change)

(1)>2
1WIRE routines (C) 2000 Michael Pearce GNU GPL
Ready
1-WIRE>WP
Power supplies ON
Pull-up resistors ON
1-WIRE>A
AUX HIGH
1-WIRE>d
VOLTAGE PROBE: 4.29V
1-WIRE>d
VOLTAGE PROBE: 4.25V
1-WIRE>

Will run a new test with v5.9 in a few minutes.