Page 1 of 2

Pickit 3 programing issues

Posted: Mon Mar 14, 2022 8:10 pm
by Chadb
Hello, I recently upgraded my computer to win10 and also FC9.

I am having problems programing a chip. I am using the 32MZ0512EFF and I cant' get it to program.
Everything is a fresh install. I have doubled checked the connections to the chip. It is talking to the chip or it wouldn't say it is a "Invalid Device ID".
Does anyone have any suggestions?

Thanks,

Chad

P.s. I tried with my PicKit4 but It always fails on the firmware update, so I dug out my PicKit 3.

https://www.flowcode.co.uk
Using <pic3> user settings for compiler
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\bin\xc32-gcc.exe -mprocessor=32MZ0512EFE064 -O1 -o "C:\Users\d_e_l\Documents\Flow Projects\Voyager Project\Pic32MZ 1st test vp 2.elf" "C:\Users\d_e_l\Documents\Flow Projects\Voyager Project\Pic32MZ 1st test vp 2.c"

Using <pic3> user settings for linker
Launching the linker/assembler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic32\bin\xc32-bin2hex.exe "C:\Users\d_e_l\Documents\Flow Projects\Voyager Project\Pic32MZ 1st test vp 2.elf"

Using <pic3> user settings for programmer
Launching the programmer...
C:\Program Files\Microchip\MPLABX\v6.00\mplab_platform\mplab_ipe\ipecmd.exe /P32MZ0512EFE064 /F"C:\Users\d_e_l\Documents\Flow Projects\Voyager Project\Pic32MZ 1st test vp 2.hex" /TPPK3 /M /OL
DFP Version Used : PIC32MZ-EF_DFP,1.3.58,Microchip
. . .

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

Target voltage detected
Target Device ID (0x7206053) is an Invalid Device ID. Please check your connections to the Target Device.
Operation Failed

C:\Program Files\Microchip\MPLABX\v6.00\mplab_platform\mplab_ipe\ipecmd.exe reported error code 0x1

Autoclose turned off


FINISHED

Re: Pickit 3 programing issues

Posted: Mon Mar 14, 2022 10:50 pm
by Chadb
It says that it has the pic 32 firmware installed? I would assume it supports that chip. I am trying to find the supported chip list for it.
I did install the latest Mplab IPE. I have tried different usb ports, usb hubs....
I have a pickit 4 but it always returns an error when downloading the latest firmware. I tried the reset procedure but it didn't help.

Chad

Re: Pickit 3 programing issues

Posted: Tue Mar 15, 2022 9:47 am
by Steve-Matrix
Last time I saw an error like that was here:
viewtopic.php?p=5124#p5124

That user had the wrong target device selected in Flowcode. Your post mentions the "32MZ0512EFF", but the compiler output lists "32MZ0512EFE064". Perhaps it is the same issue?

If not, have you tried uploading the HEX file generated by Flowcode using MPLAB IPE directly?

Re: Pickit 3 programing issues

Posted: Tue Mar 15, 2022 10:21 am
by WingNut
I've noticed in recent weeks that MPLAB has changed the device I had selected in a project to a similar one but causes a compiler issue. If you don't notice it you can get caught out for a while. It could be only one character out so at a glance it looks ok

Re: Pickit 3 programing issues

Posted: Wed Mar 16, 2022 12:01 am
by Chadb
Steve: The naming was just me being lazy. It's the correct one. I uploaded the hex with mplab:
Connecting to MPLAB PICkit 3...

Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.09
Firmware type..............PIC32MZ

Target voltage detected
Target Device ID (0x7206053) is an Invalid Device ID. Please check your connections to the Target Device.
DEVSN0 = ec5827e7
DEVSN1 = 42355410

Device Erased...

Programming...

The following memory area(s) will be programmed:
program memory: start address = 0x1d000000, end address = 0x1d003fff
boot config memory
configuration memory
Programming/Verify complete

It didn't like the target device either for some reason but it just plowed along and uploaded it anyway. The chip did program and is working. Just for fun I tried FC again and got the same error. ?

Wingnut, It's strange, still don't know what it going on.

Chad

Re: Pickit 3 programing issues

Posted: Wed Mar 16, 2022 12:11 am
by Chadb
I also found this error from mplab:

Loading code from C:/Users/d_e_l/Documents/Flow Projects/Voyager Project/Pic32MZ 1st test vp 2.hex...
Configuration Bits: address 0x1FC0FFCC: ICESEL = 0 does not match any valid value in the device database.
Setting to the default value.
Program loaded with pack,PIC32MZ-EF_DFP,1.3.58,Microchip
Loading completed
Connecting to programmer...
Programming target...
Programming completed
Running target...

Chad

Re: Pickit 3 programing issues

Posted: Wed Mar 16, 2022 8:57 am
by medelec35
Chadb wrote:
Mon Mar 14, 2022 8:10 pm
I am using the 32MZ0512EFF and I cant' get it to program.
However flowcode is compiling with

Code: Select all

C:\Program Files\Microchip\MPLABX\v6.00\mplab_platform\mplab_ipe\ipecmd.exe /P32MZ0512EFE064 /F"C:\Users\d_e_l\Documents\Flow Projects\Voyager Project\Pic32MZ 1st test vp 2.hex" /TPPK3 /M /OL
Since one device is 32MZ0512EFF = device id 0x7206053
the other is 32MZ0512EFE064 = device id 0x7201053
They are two different devices.
The hardware you have is detected as EFF version, but it looks like Flowcode has the EFE version only
Perhaps a new fcdx file can be added?
I will look into it.

Re: Pickit 3 programing issues

Posted: Wed Mar 16, 2022 10:48 am
by Chadb
Hi martin, When I typed that, it was a typo. it should read as 32MZ0512EFE064. This is the chip that I am using and the chip that I selected in flowcode. Sorry about the confusion.
The discrepancy between the two builds is probably because I was trying the ipecmd vs. using the pickit3 external programmer setting.
They both produce a similar result.

At least we are one step closer. Being able to flash a hex with mplab removes the hardware from the equation.

Chad

Re: Pickit 3 programing issues

Posted: Wed Mar 16, 2022 11:25 am
by medelec35
Chadb wrote:
Wed Mar 16, 2022 10:48 am
it should read as 32MZ0512EFE064. This is the chip that I am using and the chip that I selected in flowcode.
Microchip as got PIC32MZ0512EFF064 as 0x7206053 which is being picked up.
Either the chip ID has been programmed wrong by the manufacturer, the chip has been marked incorrectly or the ID within MPLAB is wrong.
Going by this:
Device ID.png
Device ID.png (70.21 KiB) Viewed 2926 times
See attached, the latter can be ruled out.
It can only be one of the first two options.
I would suggest the chip is marked incorrectly.

Re: Pickit 3 programing issues

Posted: Wed Mar 16, 2022 11:39 am
by medelec35
I have created a temporary fix for you to try.
Can you close Flowcode.
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD
Drop the attached file into the hidden folder
Open your project, save it as another name for backup.
Select 32MZ0512EFF064 from build project options as the new target.
See if it now works programming via Flowcode.
Also, try selecting 32MZ0512EFF064 from within IPE and see if the warnings have gone?