Pickit 3 - Target D...
 
Notifications
Clear all

Pickit 3 - Target Device Issue

44 Posts
8 Users
0 Reactions
50.4 K Views
MartinMueller2003
Posts: 7614
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

If you can read the PIC then the connections are good. I would suspect the hex file.


Reply
Posts: 242
Topic starter
(@mikelmd)
Reputable Member
Joined: 15 years ago
MartinMueller2003 wrote:If you can read the PIC then the connections are good. I would suspect the hex file.

D/l another and same results. I have the SAM file and I created a HEx and I d/l a hex from the site and still same error.

In the MPLAB IPE app, aside from voltage 4.5 and the family and device settings. Are there any other settings that I must change from the default?

Funny thing: I perform an erase and it states erase device complete, the I to a blank check and it states device is NOT blank!


Reply
Posts: 2507
(@mrgrumpy)
Famed Member
Joined: 12 years ago

Are you still using AUTO Import Hex & Write....For me, I do a File/Import Hex.....
If I get a full import then I can generally write it.


Reply
Posts: 94
(@davros)
Estimable Member
Joined: 13 years ago

When I program I use the IPE- there is a setting to slow down the programming and (this one is likely a red herring) another to choose what gets programmed -memory eeprom etc.
Have you tried to slow down the processes if possible? A reasonably short USB cable?


Reply
Posts: 242
Topic starter
(@mikelmd)
Reputable Member
Joined: 15 years ago
davros wrote:When I program I use the IPE- there is a setting to slow down the programming and (this one is likely a red herring) another to choose what gets programmed -memory eeprom etc.
Have you tried to slow down the processes if possible? A reasonably short USB cable?

So, I have slowed down the programming, along w/ all other items. I thought I would share this. I performed a blank check on this PIC (which claimed it was not blank) then I exported the data. Below is a snippet of what was in the file.
:020000040000FA
:1000000000000000000000000000000000000000F0
:1000100000000000000000000000000000000000E0
:1000200000000000000000000000000000000000D0
(continued until)
:1043E00000000000000000000000000000000000CD
:1043F00000000000000000000000000000000000BD
:084000000000000000000000B8
:00000001FF

I then went to File, Import and selected the HEX file, this is what the log provided:

*****************************************************

Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.48.17
Firmware type..............Midrange

Programmer to target power is enabled - VDD = 4.500000 volts.
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
2017-05-02 09:48:31 -0400 - Reading...

Reading...

The following memory area(s) will be read:
program memory: start address = 0x0, end address = 0xfff
configuration memory
EEData memory
User Id Memory
Read complete
2017-05-02 09:48:37 -0400 - Read complete

2017-05-02 09:52:40 -0400 - Blank checking...

Blank Checking...
program memory
Address: 0 Expected Value: 3fff Received Value: 0
Blank check complete, device is not blank.
2017-05-02 09:52:43 -0400 - Blank check failed

Exporting hex file...
2017-05-02 09:52:57 -0400 - Hex File successfully created at C:/Users/Mikel/Desktop/PIC16F688.hex
2017-05-02 09:58:11 -0400 - Loading hex file. Please wait...
Loading code from C:\Users\Mikel\Downloads\Renard_SS_Operational_Firmware (1).HEX...
2017-05-02 09:58:11 -0400 - Hex file loaded successfully.

2017-05-02 09:58:54 -0400 - Programming...

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0xf3
configuration memory
program memory
Address: 1 Expected Value: 2846 Received Value: 0
Failed to program device
2017-05-02 09:58:57 -0400 - Programming failed
Pass Count: 2


Reply
Page 8 / 9
Share: