Pic32 FC8 Failed to read device

Moderator: Benj

Post Reply
stefan.erni
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Pic32 FC8 Failed to read device

Post by stefan.erni »

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: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Pic32 FC8 Failed to read device

Post by Benj »

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
Valued Contributor
Valued Contributor
Posts: 654
Joined: Fri Aug 19, 2016 2:09 pm
Location: switzerland
Has thanked: 182 times
Been thanked: 179 times
Contact:

Re: Pic32 FC8 Failed to read device

Post by stefan.erni »

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
(304.51 KiB) Downloaded 751 times
Fc8_pic32mz_empty1.fcfx
(6.07 KiB) Downloaded 197 times

Post Reply