• AVR Freaks

PICkit2 Devicefile Editor

Page: < 12345.. > >> Showing page 3 of 6
Author
lqthai
New Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2010/01/12 01:42:31
  • Location: 0
  • Status: offline
Re: RE: PICkit2 Devicefile Editor 2010/07/22 04:14:15 (permalink)
0
The program can't run on Win7 64bits
#41
dougy83
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2008/06/06 02:06:39
  • Location: 0
  • Status: offline
Re: RE: PICkit2 Devicefile Editor 2010/08/16 17:15:17 (permalink)
0

I didn't get a email notification for this post. 


lqthai The program can't run on Win7 64bits


What exactly is the error message? It might be that the program needs to be compiled to work with a more recent version of dotNET.
#42
dougy83
New Member
  • Total Posts : 28
  • Reward points : 0
  • Joined: 2008/06/06 02:06:39
  • Location: 0
  • Status: offline
Re: RE: PICkit2 Devicefile Editor 2010/08/19 01:13:28 (permalink)
0
Try v1.0.0.6 on 64-bit Windows, it might work - a 32-bit library dependency has been removed.
#43
david_h
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2010/04/06 10:43:17
  • Location: 0
  • Status: offline
Re: RE: PICkit2 Devicefile Editor 2010/09/20 16:58:05 (permalink)
0
Great job! I added a PIC32MX795F512L and programmed succesfully!
I copied PIC32MX460F512L and changed dev ID to 0x7000.
Later I changed the config mask words(to add usb/ethernet config. bits), programmed and then no longer recognized..oops! wrong bits changed?
I may have changed some ilegal Bit and the pic32, althought it works blinking a LED, it no longer sends PGD data to pickit 2.
Perphaps we should be carefull when editing config bits..
I will have to try again when I get more pics.
Again, great app ;-) thanks for your work!
#44
FunnyNYPD
Super Member
  • Total Posts : 1553
  • Reward points : 0
  • Joined: 2007/09/28 20:06:59
  • Location: USA & Canada
  • Status: offline
Re: RE: PICkit2 Devicefile Editor 2010/10/09 16:44:22 (permalink)
0
Glad to hear you guys succeeded on PIC32.
#45
Anunakin
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2011/02/01 05:33:50
  • Location: 0
  • Status: offline
Re: RE: PICkit2 Devicefile Editor 2011/02/02 11:56:18 (permalink)
0
I trying to program a PIC32MX795F512L with my pickit2, but without success:

Tsunade ~/Documentos/PIC/UBW32/FW $ pk2cmd -?V

Executable Version:    1.20.00
Device File Version:   1.55.99
OS Firmware Version:   2.32.00

Operation Succeeded
Tsunade ~/Documentos/PIC/UBW32/FW $ pk2cmd -P -W -E
Auto-Detect: Found part PIC32MX795F512L.

Erasing Device...

Operation Succeeded
Tsunade ~/Documentos/PIC/UBW32/FW $ pk2cmd -P -W -C
Auto-Detect: Found part PIC32MX795F512L.

Downloading Programming Executive...
...done
Device is blank

Operation Succeeded
Tsunade ~/Documentos/PIC/UBW32/FW $ pk2cmd -P -W -M -F UBW32_HIDBoot_MX795.hex 
Auto-Detect: Found part PIC32MX795F512L.

Downloading Programming Executive...
...done
PICkit 2 Program Report
2-2-2011, 15:54:35
Device Type: PIC32MX795F512L

Program Memory Errors



Any hope?
I just copy MX460 and changed Device ID to x7000...
post edited by Anunakin - 2011/02/02 11:58:35
#46
Genoober
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2012/01/12 13:16:54
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/01/12 13:45:45 (permalink)
0
Cheers all and nice work with the editor. 

I have a few questions though... I am trying to get a pic32mx120f032b working. Kind of stalled at the devid value. id=0x4a06053 that seems way out of the ballpark compared to other values in the pic32 line. in this thread I have come across bitmask? I am assuming that is referencing a bitwise operation. and or nor xor or some other operation. can anyone advise me as to the specific operation i should be doing to get the correct value? ive tried and/or/xor on some online calculators and always end up with fffffff or 0000000 and i KNOW those values are wrong.

Sorry for the dumb question in a place where a more advanced intellects reside, but thanks a million Smile


#47
Lame_Blacksmith
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2012/01/15 09:17:10
  • Location: Colombia
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/01/15 09:57:44 (permalink)
0
Hello Genoober. Cool editor right? Thanks for dougy83 for it.

It's like dtran11 said in earlier posts (#26 and #27).  But checking your device in the .DEV file with the programing specification of Microchip, the mask for the DEVID doesn't matches. Check it out: DS61145J- Page 40. You may find it in any search box in the microchip web site.

You may also want to change the ConfigMasks section (this one is used for proper fuses of WDT, oscillator configurations, etc). Notice that the upper one is the DEVCFG2 (DEVCFG3 is not used),  starting from the 16 LSB first then (second row) the 16 MSB of DEVCFG2. Then DEVCFG1 and DEVCFG0. I hope it helps.

I added yesterday (at last, after many tries, had a breadboard issue!) the PIC32MX575F512H. 

Thanks again Dougy83. 

Genoober, there is no such thing as a dumb question when everybody is learning.  Smile






#48
Genoober
New Member
  • Total Posts : 10
  • Reward points : 0
  • Joined: 2012/01/12 13:16:54
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/01/15 11:11:16 (permalink)
0
Thank you for the info... though Ive already found that information. my question is how to apply the bit mask and the id that's found to come up with a value that works in the pickit2. Do I and "0x0FFFF000" "0x4a06053" do I or them?  after googleing for hours Ive found "bit masking techniques" using all of the Boolean operations... or if its something else how does the bit masking work?

the information seems to be in a chapter for crc's Ive never learned about them. i will go google crc.

either way its ok i broke down and bought a pickit3 and its in the mail :) it should be here tuesday morning :)
#49
Lame_Blacksmith
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2012/01/15 09:17:10
  • Location: Colombia
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/01/15 16:38:59 (permalink)
0
Genoober

Thank you for the info... though Ive already found that information. my question is how to apply the bit mask and the id that's found to come up with a value that works in the pickit2. Do I and "0x0FFFF000" "0x4a06053" do I or them?  after googleing for hours Ive found "bit masking techniques" using all of the Boolean operations... or if its something else how does the bit masking work?

the information seems to be in a chapter for crc's Ive never learned about them. i will go google crc.

either way its ok i broke down and bought a pickit3 and its in the mail :) it should be here tuesday morning :)



You mean you passed to the dark side my friend? Smile Just kidding, although there are certain things PK2 doesn't do next to PK3 (yet), PK3 is a very good debugger (or so I hear). 


About the masking: You take "0x0FFFF000" AND "0x4A06053"  that equals = "0x4A06000" (you AND it). This would be your DEVID.

Let us know if it works.  
#50
mendelbullex
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2012/01/27 08:36:39
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/02/06 13:27:19 (permalink)
0
Hey guys, I am very new to this, and someone pointed me to this thread. I am currently trying to find a way to use my PICKit 2 as a flash programmer. I found that the 25LC series EEPROM functions very similar to the chip that I am using (SST25VF016B-50-4C-S2AF). The communication technique (4-wire SPI) and opcodes are the same for both of them. The only difference is the amount of memory space, and the fact that the write command can only do one word for the flash chip. I made some changes, saved the new device file and tried using it. I have been getting some issues with it since. First of all, when I select the device file, the PICKit 2 GUI goes into an unresponsive state for a little while. After it finally starts working, I tried reading. Sometimes it freezes, and other times it reads all 00s despite the fact that I am sure there is something other than 00s written. Can someone help me figure out what I am doing wrong?
 
Here are the changes I made:
ProgramMem: 0x001E8480(2000000)
VddMin: 2.7
VddMax:3.6
VddErase:2.7
ProgMemWrScript: 210
ProgMemWrWords:0x0001 (1)
 
I also wired the PICKit 2 for SPI communication based on a readme file I found on the 25LC setup.
 
Thanks for any help guys
-Mendelbullex
#51
mendelbullex
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2012/01/27 08:36:39
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/02/10 09:32:14 (permalink)
0
update:
 
Ok, I changed a few things after looking at it a little more in depth. I have not messed with the original (25LC version) of the write script and write word #, as it appears there is no SPI version for 1 byte writes. I changed the progmem to be 0x00200000(2097152) to be a more accurate measure of 2M memory space. I also looked at the mask values in the given array. By looking at other versions of EEPROM and comparing them, I think I figured out a little bit about what those values are, but am unsure:
    mask 1: should always be 0x0002 (what is this for?)
    mask 2: progmem-1 (is it possible to have more than 2 bytes for this?)
    mask 3: #bits to address full memory space
    mask 4 and higher: 0x0000 (should any of these be changed?)
 
It appears that I need to be able to write my own scripts in order to make sure the correct instructions are being sent (3 bytes of address read and write as well as 1 byte data writes). I looked at the scripts and they appear to be arrays of numbers in the device file editor, how do I make sense of these so that I can try to write my own?
 
Thanks for any help
-Mendelbullex
post edited by mendelbullex - 2012/02/10 10:07:26
#52
Ninestone
Super Member
  • Total Posts : 456
  • Reward points : 0
  • Joined: 2008/02/17 13:41:32
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/02/10 15:14:43 (permalink)
0
mendelbullux, If you download the PICkit 2 programmer software (v2.61) source, IIRC there is a document explaining all the device file fields and the script values. Since you changed the number of write bytes (per run of the write script) from what it used to be for the 25LC EEPROM, you'll need to change the write script to use the new value of write bytes. For example, if number of write bytes used to be "8", then the write script is expecting to write 8 bytes each time it runs. If you change the number of write bytes to "1", the software will only send 1 byte for each time it runs the script but the script still tries to write 8.
#53
Ninestone
Super Member
  • Total Posts : 456
  • Reward points : 0
  • Joined: 2008/02/17 13:41:32
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/02/10 15:21:17 (permalink)
0
PS - The document I mentioned in the software source code is "PICkit2SourceGuidePCv2-61FWv2-32.pdf". I would attach it but I don't the forum supports PDFs and anyway it's bigger than the forum attachment size limit. Here's the link to the source code: http://ww1.microchip.com/..._PCAppSource_V2_61.zip
#54
Stefan99
Super Member
  • Total Posts : 234
  • Reward points : 0
  • Joined: 2010/07/19 01:50:01
  • Location: Germany
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/03/07 05:53:11 (permalink)
0
Hello,

has sb insert a PIC16F1824?
i dont know, where i can get the information i need for it... pink

thanks
#55
Ian.M
Super Member
  • Total Posts : 13225
  • Reward points : 0
  • Joined: 2009/07/23 07:02:40
  • Location: UK
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/03/07 06:20:29 (permalink)
0
PIC16F1824 is already in device file version 1.62.14.
#56
Stefan99
Super Member
  • Total Posts : 234
  • Reward points : 0
  • Joined: 2010/07/19 01:50:01
  • Location: Germany
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/03/07 06:27:24 (permalink)
0
nice and where i get it from? :-)

sorry i'm very tired LoL
#57
Stefan99
Super Member
  • Total Posts : 234
  • Reward points : 0
  • Joined: 2010/07/19 01:50:01
  • Location: Germany
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/03/07 07:06:34 (permalink)
#58
sanpic
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2012/03/15 16:43:54
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/03/18 21:56:49 (permalink)
0

I trying to program a PIC24FV32KA302 with my pickit2, but without success: 

I copied PIC24HJ32GP302 and changed dev ID to 0x00004513 , PROGMEM = 0X00002C00 , VDDMIN = 4.5 , VDDMAX = 5.0
PICKIT2 found this device , but no write.
I don´t know configure the ConfigAddr,ConfigMasks,ConfigBank and CPMask in the Device Editor


Thanks for any help

Excuseme for my bad english

#59
PabloESP
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2012/04/12 09:01:23
  • Location: 0
  • Status: offline
Re:PICkit2 Devicefile Editor 2012/04/12 09:26:10 (permalink)
0
Hello, I'm trying to add the "PK2devicefile" the microcontrollerPIC32MX220F032B but I have some doubts. The DeviceID I get to do "and" between 0x0FFFF000 and 0x04A00053, 0x04A00000and I get, is that correct? the ProgramMem do not know where to get it, and ConfigMask is what appears in the DS61145JDEVCFG0, DEVCFG1, DEVCFG2 and DEVCFG3? but there are only 4 and there are 8 program ... where I get them? once this is done, change something else? Thanks in advance. A greeting
#60
Page: < 12345.. > >> Showing page 3 of 6
Jump to:
© 2019 APG vNext Commercial Version 4.5