Forums

code rquest........(dont hit me!)

Started by Lez October 31, 2006
Ok I'm hitting my head against a wall here............

I have a willem style programmer from sivava.
I have no problems with it with my box of f88's

I have been working on communicating to a phone with them.

I needed more code space and usb so upgraded to 18f2550.

Cant get them to program right.........

I am using the ISP from the sivava to my own board, heres a pic during
the building.

http://homepage.ntlworld.com/tinabriddon/bday/DSC00464.JPG

I did build the ISP wrong, I switch rb6 and rb7, so did a swap in the
cable to correct it.
So, to test the pic, and the board, can someone post some short hex,
not asm / C etc but ready to burn hex, to just flash / run lights on
say port B, nothing fancy shorter the better etc.

I'm sorry to ask for working code in this way, but its a very simple
request, I dont know whats going wrong.

The pic should be fine so I dont know why when it programmed it didnt
work, but it only programs about one good burn in an hour.........

--

Lez
Lez,

I had similar problems with ICSP of these chips. If I placed it in the
sockets of my commercially made JDM programmer it worked fine, using
ISCP it failed every time.

Malcolm

Lez wrote:

>Ok I'm hitting my head against a wall here............
>
>I have a willem style programmer from sivava.
>I have no problems with it with my box of f88's
>
>I have been working on communicating to a phone with them.
>
>I needed more code space and usb so upgraded to 18f2550.
>
>Cant get them to program right.........
>
>I am using the ISP from the sivava to my own board, heres a pic during
>the building.
>
>http://homepage.ntlworld.com/tinabriddon/bday/DSC00464.JPG
>
>I did build the ISP wrong, I switch rb6 and rb7, so did a swap in the
>cable to correct it.
>So, to test the pic, and the board, can someone post some short hex,
>not asm / C etc but ready to burn hex, to just flash / run lights on
>say port B, nothing fancy shorter the better etc.
>
>I'm sorry to ask for working code in this way, but its a very simple
>request, I dont know whats going wrong.
>
>The pic should be fine so I dont know why when it programmed it didnt
>work, but it only programs about one good burn in an hour.........
>
>
Lez,
attached is a skeleton I'm working on right now for a new program.
its for a F242 so change the proc type at the top, and remove the
mathlib reference. Other than that it should run ok.
It flashes a LED at RB0, running at 1Mhz RC osc.

The file MAY be dropped by Yahoo....
Lez wrote:

> Ok I'm hitting my head against a wall here............
>
> I have a willem style programmer from sivava.
>
> I have no problems with it with my box of f88's
>
> I have been working on communicating to a phone with them.
>
> I needed more code space and usb so upgraded to 18f2550.
>
> Cant get them to program right.........
>
> I am using the ISP from the sivava to my own board, heres a pic during
>
> the building.
>
> http://homepage.ntlworld.com/tinabriddon/bday/DSC00464.JPG
>
> I did build the ISP wrong, I switch rb6 and rb7, so did a swap in the
> cable to correct it.
>
> So, to test the pic, and the board, can someone post some short hex,
> not asm / C etc but ready to burn hex, to just flash / run lights on
> say port B, nothing fancy shorter the better etc.
>
> I'm sorry to ask for working code in this way, but its a very simple
> request, I dont know whats going wrong.
>
> The pic should be fine so I dont know why when it programmed it didnt
> work, but it only programs about one good burn in an hour.........
>
> --
>
> Lez
>
--
*******************************************
VISIT MY HOME PAGE:

LAST UPDATED: 23/08/2003
*******************************************
Regards
Eirik Karlsen
Thanks, I'm beginning to wish I'd picked something other than the 2550....

On 31/10/06, Eirik Karlsen wrote:
>
> Lez,
> attached is a skeleton I'm working on right now for a new program.
> its for a F242 so change the proc type at the top, and remove the mathlib
> reference. Other than that it should run ok.
> It flashes a LED at RB0, running at 1Mhz RC osc.
>
> The file MAY be dropped by Yahoo....
> Lez wrote:
>
> Ok I'm hitting my head against a wall here............
>
> I have a willem style programmer from sivava.
>
> I have no problems with it with my box of f88's
>
> I have been working on communicating to a phone with them.
>
> I needed more code space and usb so upgraded to 18f2550.
>
> Cant get them to program right.........
>
> I am using the ISP from the sivava to my own board, heres a pic during
> the building.
>
> http://homepage.ntlworld.com/tinabriddon/bday/DSC00464.JPG
>
> I did build the ISP wrong, I switch rb6 and rb7, so did a swap in the
> cable to correct it.
>
> So, to test the pic, and the board, can someone post some short hex,
> not asm / C etc but ready to burn hex, to just flash / run lights on
> say port B, nothing fancy shorter the better etc.
>
> I'm sorry to ask for working code in this way, but its a very simple
> request, I dont know whats going wrong.
>
> The pic should be fine so I dont know why when it programmed it didnt
> work, but it only programs about one good burn in an hour.........
>
> --
>
> Lez
>
> --
> *******************************************
> VISIT MY HOME PAGE:
> > LAST UPDATED: 23/08/2003
> *******************************************
> Regards
> Eirik Karlsen
>
--

Lez
On 31/10/06, Malcolm Crabbe wrote:
> Lez,
>
> I had similar problems with ICSP of these chips. If I placed it in the
> sockets of my commercially made JDM programmer it worked fine, using
> ISCP it failed every time.
>
> Malcolm

Ha ha, so it may be that, oh joy.............

I'm on a willem based programmer from sivava so far its been stable,
but even with a f88 actually in it every now and again it would fail
and I would have to change LVP and try again, cant see why that should
have helped as sometimes it worked with it set, others with it not
set........... Did I say stable....

Lez
Lez,

I have no idea why it wouldn't work in ICSP mode. I tried three
programs ( WinPIC, ICPROG and PICPGM), I tried short leads from the
programmer to the chip, and obviously tried several chips - the result
was always the same.

I'm guessing that as some of the other pins on the PIC are grounded or
kept high, that this has something to do with allowing the pic to enter
programming mode - shouldn't do in theory, but that was the only
plausible idea I came up with. ( I had tried all options to apply
voltage to vPP before vdd etc and that had no effect)

Sorry can't help further

Malcolm

Lez wrote:

>On 31/10/06, Malcolm Crabbe wrote:
>
>
>>Lez,
>>
>> I had similar problems with ICSP of these chips. If I placed it in the
>> sockets of my commercially made JDM programmer it worked fine, using
>> ISCP it failed every time.
>>
>> Malcolm
>>
>>Ha ha, so it may be that, oh joy.............
>
>I'm on a willem based programmer from sivava so far its been stable,
>but even with a f88 actually in it every now and again it would fail
>and I would have to change LVP and try again, cant see why that should
>have helped as sometimes it worked with it set, others with it not
>set........... Did I say stable....
>
>Lez
>
>
>
WellI'm about to unsolder the damn thing, stick a few bits of wire on it and
push them into the socket I use for the f88, if that works, I'll move the
wires to the IP connector, maybe the programmer boards IP is faulty......

z
On 01/11/06, Lez wrote:
> WellI'm about to unsolder the damn thing, stick a few bits of wire on it and
> push them into the socket I use for the f88, if that works, I'll move the
> wires to the IP connector, maybe the programmer boards IP is faulty......
>
> z
Guess what, still cant get it to work!

I've soldered wires on it and stuck them in the 18 pin socket, no use,
I have soldered them to the ISP connector, no use.

I tried this with a f88, worked, I soldered wires to a 877,
problematic but worked........

I think I'll just go on the web/ebay and see if I can buy a boot
loader programmed 2550 and dump this damn programmer..........

--

Lez
ucces !

hey my caps s has gone, damn keyboard hates me now!

Ok it was the POS software from sivava, tried winpic800, set it to
willem, programmed and verified on the first go.

tried original software, would not even read it back correctly, back
to winpic, 5 for 5 programs and verifys (with a 2550 soldered to isp)

plugged my project/proto board back in, nothing, found out I must not
have anything connect to rb7 when programming, it had a 2k resistor
and an led, same as all the rb's, can leave the one on rb6, but not
rb7.

I was sent some HEX to flash an led on ra0, and I have the code in,
but nothing flashes, maybe its fuses or something.

I'm on a 16mhz tin box crystal(just in case someone wants to flash my
led's), so when I have had a cuppa, and watched a film to chill out,
i'll come back top this...........

Lez
Hi Lez, Malcom,

The clock and data lines need to be only lightly loaded, or provide jumpers
to disconnect circuitry attached to them. The circuit may have to be
powered.

I have an ICD2 both at work and at home which I routinely use. I have a
"universal programming module" for work, and like it. When I came across a
similar (clone) module, I bought it. It wouldn't work at all until I
attached 5v power to it for the PIC (my ICD2 setup expects powered host).
Even after I added a 5V wall wart, and could only get intermittent success
with it. I examined the power, it appeared OK. Then I hung a 50uF (?) cap
on the module, and all my problems went away! Just food for thought.

> Lez,
>
> I have no idea why it wouldn't work in ICSP mode. I tried three
> programs ( WinPIC, ICPROG and PICPGM), I tried short leads from the
> programmer to the chip, and obviously tried several chips - the result
> was always the same.
>
> I'm guessing that as some of the other pins on the PIC are grounded or
> kept high, that this has something to do with allowing the pic to enter
> programming mode - shouldn't do in theory, but that was the only
> plausible idea I came up with. ( I had tried all options to apply
> voltage to vPP before vdd etc and that had no effect)
>
> Sorry can't help further
>
> Malcolm
>
> Lez wrote:
>
> >On 31/10/06, Malcolm Crabbe wrote:
> >
> >
> >>
> >>
> >>
> >>
> >>Lez,
> >>
> >> I had similar problems with ICSP of these chips. If I placed it in the
> >> sockets of my commercially made JDM programmer it worked fine, using
> >> ISCP it failed every time.
> >>
> >> Malcolm
> >>
> >>
> >
> >
> >
> >Ha ha, so it may be that, oh joy.............
> >
> >I'm on a willem based programmer from sivava so far its been stable,
> >but even with a f88 actually in it every now and again it would fail
> >and I would have to change LVP and try again, cant see why that should
> >have helped as sometimes it worked with it set, others with it not
> >set........... Did I say stable....
> >
> >Lez
> >
> >
> >
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
>