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
Pickit 3 programing issues
-
- Posts: 73
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 18, 2020 1:15 pm
- Has thanked: 32 times
- Been thanked: 1 time
Re: Pickit 3 programing issues
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
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
-
- Matrix Staff
- Posts: 1472
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 204 times
- Been thanked: 349 times
Re: Pickit 3 programing issues
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?
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
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
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
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
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
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
-
- Matrix Staff
- Posts: 1922
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: Pickit 3 programing issues
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
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
Re: Pickit 3 programing issues
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
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
-
- Matrix Staff
- Posts: 1922
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: Pickit 3 programing issues
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: 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 529 times
Martin
-
- Matrix Staff
- Posts: 1922
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 623 times
- Been thanked: 645 times
Re: Pickit 3 programing issues
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?
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 577 times
Martin