PDA

View Full Version : Can't program a 12LF1840?



BobP
- 19th October 2021, 09:47
Hi All,

Usually I use 12f863 in my projects but can't get them anywhere. I managed to get some 12LF1840 pics and find when I try to program them all 5 come up with the error of 'Target device does not match'.

I am using Melabs U2 programmer with ver 4.67 software.
Microcode Studio ver. 5.0.0.5
and PBP 3.0.7.1

Have tried with in-circuit programming and with 8pin adapter. Both give the same error.
Programmer works with a 18F2525 so think hardware is OK?

Any help or tips welcome as tearing hair out! (what there is of it).

Many thanks
Bob

peterdeco1
- 19th October 2021, 10:21
https://www.findchips.com/search/12f683

richard
- 19th October 2021, 10:26
there are 12LF1840 and 12F1840 , the compiler , the programmer and the chip all need to sing the same tune

just saying the obvious

BobP
- 19th October 2021, 10:44
Hi All,

Thanks for the replies.
I had already selected 12LF1840 on programmer and Microcode (I had also tried 12F1840 just to be sure).

But thanks,
Bob

richard
- 19th October 2021, 11:04
highly recommend pk2 clones and pk3 , the snap/pickit4 programmers are ok too

Ioannis
- 19th October 2021, 11:40
Pickit 2 or 3 are great and even greater with the stand alone program of Evan Venn: www.pickitplus.co.uk

Ioannis

amgen
- 19th October 2021, 13:51
One time a while back I had to change something in one of the .INC (include) or .LIB (library) or some other file used for the compiler. I compared the listings of the device and other things with a device that worked. I remember finding one simple reference that was incorrect and fixing that made it work.

rocket_troy
- 20th October 2021, 01:58
Pickit 2 or are great and even greater with the stand alone program of Evan Venn: www.pickitplus.co.uk

+1 to that

Troy

BobP
- 20th October 2021, 15:34
Hi All,

SOLVED!

I knew I was making a stupid mistake and it only took me a day to see it!

I was powering the LF part from 5v.

Set to 3.5v and all working.

Off to bang my head off the wall.

hopefully will help someone out there in the future?

Bob