Pickit 3 programing issues

For general Flowcode discussion that does not belong in the other sections.
Chadb
Posts: 63
http://meble-kuchenne.info.pl
Joined: Fri Dec 18, 2020 1:15 pm
Has thanked: 23 times

Pickit 3 programing issues

Post 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

Chadb
Posts: 63
Joined: Fri Dec 18, 2020 1:15 pm
Has thanked: 23 times

Re: Pickit 3 programing issues

Post 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

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: Pickit 3 programing issues

Post 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?

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: Pickit 3 programing issues

Post 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

Chadb
Posts: 63
Joined: Fri Dec 18, 2020 1:15 pm
Has thanked: 23 times

Re: Pickit 3 programing issues

Post 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

Chadb
Posts: 63
Joined: Fri Dec 18, 2020 1:15 pm
Has thanked: 23 times

Re: Pickit 3 programing issues

Post 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

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: Pickit 3 programing issues

Post 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.
Martin

Chadb
Posts: 63
Joined: Fri Dec 18, 2020 1:15 pm
Has thanked: 23 times

Re: Pickit 3 programing issues

Post 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

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: Pickit 3 programing issues

Post 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 2859 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.
Attachments
80000663F.pdf
(207.72 KiB) Downloaded 106 times
Martin

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: Pickit 3 programing issues

Post 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?
Attachments
32MZ0512EFF064.fcdx
(82.24 KiB) Downloaded 82 times
Martin

Post Reply