Author Topic: PICkit 2 Device Data File Editor?  (Read 12935 times)

0 Members and 1 Guest are viewing this topic.

Offline AcHmed99Topic starter

  • Contributor
  • Posts: 35
  • Country: 00
PICkit 2 Device Data File Editor?
« on: July 07, 2014, 11:47:08 am »
Does anybody know of any reason why a Pickit2 would not be able to flash a new PIC16F1713?  I’ve modified the pk2devicefile using the PICkit 2 Device Data File Editor. I copied most of the settings from a similar PIC the PIC16F1508. The only settings I changed was part number, Device ID to 3049h and config mask 3EFF and 3F87 pulled from page 30 of the programming spec’s of the 1713.

When I try to flash the 1713 I get “selected device not detected”. Is their some other setting I’m missing?

I know that the simplest solution would be to buy a PICKIT3 but I already have a PICKIT2 and a ME microprog. ME can’t give an answer on when they will update microprog for PIC and I would rather not buy yet another PIC programmer. If anyone has experience with updating the device file and can offer some pointers it would be appreciated.
 

Offline 22swg

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: gb
Re: PICkit 2 Device Data File Editor?
« Reply #1 on: July 07, 2014, 08:04:47 pm »
Buy a PK3 there on offer at the moment , you will need it for PIC24F   :)
Check your tongue, your belly and your lust. Better to enjoy someone else’s madness.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: PICkit 2 Device Data File Editor?
« Reply #2 on: July 08, 2014, 12:52:00 am »
Quote
When I try to flash the 1713 I get “selected device not detected”.

What's the id returned by pickit2?

Maybe it is a confusion between hex vs. dec?

Two solutions:

1) get a pickit3 - it is a pain;
2) use only chips supported by pickit2 - my mode of operations.
================================
https://dannyelectronics.wordpress.com/
 

Offline picandmix

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: gb
Re: PICkit 2 Device Data File Editor?
« Reply #3 on: July 08, 2014, 03:51:45 pm »
Buy a PK3 there on offer at the moment , you will need it for PIC24F   :)

Hi,

Have looked around but cannot see any PK3 offers  - can I ask where you saw it and what price ?

Thanks
 

Offline Skimask

  • Super Contributor
  • ***
  • Posts: 1433
  • Country: us
Re: PICkit 2 Device Data File Editor?
« Reply #4 on: July 08, 2014, 05:59:37 pm »
I've tried off and on over the past few months to do the same thing to my PK2 for the '1713, and can't get it to work either.  Change DEV ID, config masks, etc, as required, and even tweak a couple of timings back and forth.  No dice.
The PK3 however works FINE for me under MPLAB.  Don't know what everybody else's issue is...
Yes, the PK3 is not even in the same league as the PK2 as far as ease of use, and I agree, it's basically garbage when compared...but it works...and it's worked every time.
I didn't take it apart.
I turned it on.

The only stupid question is, well, most of them...

Save a fuse...Blow an electrician.
 

Offline kolbep

  • Frequent Contributor
  • **
  • Posts: 598
  • Country: za
    • ShoutingElectronics.com
Re: PICkit 2 Device Data File Editor?
« Reply #5 on: July 08, 2014, 06:20:19 pm »
The offer s on the microchip  direct site. You get a pk3 and a pic on a small board. You get 40% off when you use the coupon code they have above the description
====================================
www.ShoutingElectronics.com Don't just talk about Electronics, SHOUT ABOUT IT! Electronics Blog Site and Youtube Channel
 

Offline kolbep

  • Frequent Contributor
  • **
  • Posts: 598
  • Country: za
    • ShoutingElectronics.com
====================================
www.ShoutingElectronics.com Don't just talk about Electronics, SHOUT ABOUT IT! Electronics Blog Site and Youtube Channel
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: PICkit 2 Device Data File Editor?
« Reply #7 on: July 08, 2014, 07:34:04 pm »
Microchip runs promotions from time to time.

Also, watch out for clones that are considerably cheaper.

Overall, PICs are not the best chips to get into now.
================================
https://dannyelectronics.wordpress.com/
 

Offline 22swg

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: gb
Re: PICkit 2 Device Data File Editor?
« Reply #8 on: July 08, 2014, 08:25:42 pm »
Microchip Direct ... have this also http://www.microchipdirect.com/ProductSearch.aspx?Keywords=PG164130
In the UK some distributers have same sort of price for dev bd ...http://uk.farnell.com/microchip/dv164131/debug-express-pickit-3-pic-dspic/dp/1686530
I guess some countries will differ.

I dont know why some have problems with PK3  I run it with  MPLABX 2.10 and PIC24FV series. no problems at all ! ( PC is XP pro or win7)   
Check your tongue, your belly and your lust. Better to enjoy someone else’s madness.
 

Offline picandmix

  • Frequent Contributor
  • **
  • Posts: 395
  • Country: gb
Re: PICkit 2 Device Data File Editor?
« Reply #9 on: July 08, 2014, 08:56:52 pm »
Hi,

Thanks for the heads up, will wait a bit longer and see if they give 40% off the base Pk3 as the dev board is of little use.
 

Offline JTR

  • Regular Contributor
  • *
  • Posts: 107
  • Country: au
Re: PICkit 2 Device Data File Editor?
« Reply #10 on: July 09, 2014, 04:16:11 am »
Pretty much the whole 16F1xxx family have a unified programming algorithm.

The ONLY reason why the existing pickit 2 software / firmware may choke on the newer 16F1xxx parts is because the DevID and revision has been split across two words. This is something the older pickit 2 wares does not know about. This in itself will not stop the newer devices from being programmed correctly, it may however cause error messages about the DevID that, all else being equal, can be ignored.

I am not saying that this is the issue here as I have not checked if the target part actually uses a two word DevID and revision. If it doesn't then something is wrong with the new device entry. If it does then this probably is the right reason for the issue.
 
The following users thanked this post: KL27x

Offline bequest333

  • Contributor
  • Posts: 16
  • Country: jp
Re: PICkit 2 Device Data File Editor?
« Reply #11 on: July 23, 2014, 07:47:02 am »
 

Offline bequest333

  • Contributor
  • Posts: 16
  • Country: jp
Re: PICkit 2 Device Data File Editor?
« Reply #12 on: July 24, 2014, 10:05:45 am »
Hi,

Do not write in the following way?

0.Editor start
1.Open the device file
2.Select PIC16F1508 from PartsList
3.Right click -> Duplicate Item
4.PIC16F1508 can be two
5.Select one

6.PartName: PIC16F1508 -> PIC16F1713
7.DeviceID: 2D20 -> 3043
8.ConfigMasks[1]: 3E03 -> 3F87
9.Save Device File.
 

Offline bequest333

  • Contributor
  • Posts: 16
  • Country: jp
Re: PICkit 2 Device Data File Editor?
« Reply #13 on: July 24, 2014, 02:40:53 pm »
hi, ID
« Last Edit: July 24, 2014, 02:48:01 pm by bequest333 »
 

Offline bequest333

  • Contributor
  • Posts: 16
  • Country: jp
Re: PICkit 2 Device Data File Editor?
« Reply #14 on: July 24, 2014, 10:21:58 pm »
Hi,

I do not own the PIC16F17XX.

Increase the PIC24F08KL200 in the same way, I have succeeded in writing.

Reference
http://sourceforge.net/p/tinypicbootload/discussion/devices/thread/e3e646c0/

PIC16F1508 -> 20pin
PIC16F1713 -> 28pin

Were compared with data of the same PIC16F1938 28PIN, but could not find the items that reflect the PIN count of the device file.
« Last Edit: July 24, 2014, 10:23:33 pm by bequest333 »
 

Offline bequest333

  • Contributor
  • Posts: 16
  • Country: jp
Re: PICkit 2 Device Data File Editor?
« Reply #15 on: July 25, 2014, 06:35:08 am »
Hi,

Cause this is not it?

Device ID of the PIC16F1713 is 14bits
Device ID of the PIC16F1508 is 9bits

PIC16F1508's Device Families = 14

Device Family14 has DeviceIDMask 0x3FE0.

If you select Device Family14 in PIC16F1713, ID is 0x3043 & 0x3FE0 = 0x3040.


Solution

1.Duplicate Device Families-Midrange/1.8V Min
2.FamlyID 14 --> 21
3.FamlyName Midrange/1.8V Min --> Midrange/1.8V Min ID-14
4.DeviceIDMask 3FE0 --> 3FFF

5.Move Parts List
6.Select PIC16F1713
7.Family 14 --> 21

Reference
https://www.eevblog.com/forum/microcontrollers/pickit-2-c-sources/

If you extracted by combining the file macboy uploaded,
PICkit2SourceGuidePCv2-40FWv2-10.doc is generated.

Parameters DeviceFile are detailed in the Chapter 7.

Thank you very much macboy, the file very helpful !!!
« Last Edit: July 25, 2014, 06:39:16 am by bequest333 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf