Re: need help pls


Dec 12, 2003

 


----------------------------

#3759 Dec 12, 2003

hi everyone,



pls help me , I have o problem with 16f877a programming.

I built a JDM interface and I run ic-prog for flash writing.



the problem is that the writing is made wrong, it seems that the

ic-prog doesn't know the target for programming (even I set from

device type the proper uC).

anyway, if I have a 5k code, ic-prog is writing only at 0000h and the

data written there is wrong.

if I let data to be everywhere 1fff (in ic-prog buffer) and I change

only at 0010h data to be 1ffc, the writing is made correctly)

but if I change data at 0010h to be 1fcc (and the rest of data to be

1fff), ic-prog will write 1fec and not 1fcc,

and so on, the writing (or the reading) is made wrong.



please help me, I'm beginner in pic programming and I could'n manage

this problem until now.



thks,

catalin



----------------------------

#3761 Dec 13, 2003

hmmm, I think you are saying that it writes the data but when you

read it back, it is different from what you wrote. The one example

you gave implies a stuck bit (bit 5) in the flash array. Look at

other values of what you wrote and what you read back. Is bit 5

always set to 1? Kind of unlikely that its a bad 877A but...

--- In piclist@yahoogroups.com, "cmanmcm" cmanmcm@y...> wrote:

> hi everyone,

>

> pls help me , I have o problem with 16f877a programming.

> I built a JDM interface and I run ic-prog for flash writing.

>

> the problem is that the writing is made wrong, it seems that the

> ic-prog doesn't know the target for programming (even I set from

> device type the proper uC).

> anyway, if I have a 5k code, ic-prog is writing only at 0000h and

the

> data written there is wrong.

> if I let data to be everywhere 1fff (in ic-prog buffer) and I

change

> only at 0010h data to be 1ffc, the writing is made correctly)

> but if I change data at 0010h to be 1fcc (and the rest of data to be

> 1fff), ic-prog will write 1fec and not 1fcc,

> and so on, the writing (or the reading) is made wrong.

>

> please help me, I'm beginner in pic programming and I could'n manage

> this problem until now.

>

> thks,

> catalin



----------------------------

#3772 Dec 14, 2003

--- In piclist@yahoogroups.com, "cmanmcm" cmanmcm@y...> wrote: > hi everyone,

>

> pls help me , I have o problem with 16f877a programming.

> I built a JDM interface and I run ic-prog for flash writing.

>

> the problem is that the writing is made wrong, it seems that the

> ic-prog doesn't know the target for programming (even I set from

> device type the proper uC).

> anyway, if I have a 5k code, ic-prog is writing only at 0000h and the

> data written there is wrong.



I solved the problem.

the cause was the speed of mai processor (to fast), I had to increase

the delay of programming from ic-prog hardware options.



thks anyway,

catalin


S
e
n
i
o
r
T
u
b
e
.
o
r
g