Pic32 FC8 Failed to read device

Moderator: Benj

stefan.erni
Posts: 504
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 159 times
Been thanked: 144 times
Contact:

Pic32 FC8 Failed to read device

Postby stefan.erni » Mon Dec 10, 2018 2:23 pm

Hi Ben

It's not a big bug ..... It's flashing the PIC correct

If I flash the first Time the PIC then it's shows my the device info...

Target device PIC32MZ2048ECG100 found.
Device ID Revision = A5
DEVSN0 = ec872e39
DEVSN1 = 01b45410


If I flash second Time the PIC, then it's shows my Failed to read device... but every thing is ok.

Target voltage detected
Target device PIC32MZ2048ECG100 found.
Device ID Revision = A5
Failed to read device
. . . . .

User avatar
Benj
Matrix Staff
Posts: 14219
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4361 times
Been thanked: 4096 times
Contact:

Re: Pic32 FC8 Failed to read device

Postby Benj » Mon Jan 21, 2019 12:12 pm

Hello,

It's hard to tell without your project file but are you code protecting the flash or configuration via your configuration settings.

stefan.erni
Posts: 504
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 159 times
Been thanked: 144 times
Contact:

Re: Pic32 FC8 Failed to read device

Postby stefan.erni » Fri Jun 28, 2019 5:32 pm

Hi Ben
No I don't code protecting the flash.
But now I tried to fix the problem and I connected the PICKkit3 and it's the same problem.
I tried with the the MPlab X IPE 5.2 to read the device with ICD4 or with PICKkit3.It's not possible. After erase it's possible again to read (but empty)

So I had an idea to create a new empty project with the parameter PIC32MZ2048efg100 from FC8
But it's same. One of the problem is I can not read the device config bit with the MPLAB XIDE 5.2 to solve the wrong config bit's.
The another is just it need longer to program the PIC.


Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.00
Firmware type..............PIC32MZ

Target voltage detected
Target device PIC32MZ2048EFG100 found.
Device ID Revision = A3
Failed to read device
. . . . . . . . . .
Device Erased...
Programming...
The following memory area(s) will be programmed:
boot config memory
configuration memory
. . . . . . . . . .
Programming/Verify complete
PICKIT3 Program Report
28-Jun-2019, 18:22:47
Device Type:PIC32MZ2048EFG100
Program Succeeded.
Operation Succeeded
. . .FINISHED


IDE.PNG
IDE.PNG (304.51 KiB) Viewed 283 times


Fc8_pic32mz_empty1.fcfx
(6.07 KiB) Downloaded 11 times