0.1uf capacitor between Vdd and GND (Vss)
10uF tantalum cap between Pin 20 (CAP) and Pin 19 (VSS)
10k pull up resistor between (MCLR) and Vcc.
In the MPLAB settings I set to power the Pic32 (I tried with 3.25 and 3.375 Volts, same result).
These are the error messages I got from the MPLAB IPE with read, erase, verify, program options.
Any idea/hint/suggestion?
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.56.09
Firmware type..............PIC32MX
Programmer to target power is enabled - VDD = 3,375000 volts.
Target device PIC32MX250F128B found.
Device ID Revision = A1
-------------------------
Erasing...
Failed to erase the device
Selected device and target: memory mismatch.
--------------------------
Reading...
The following memory area(s) will be read:
program memory: start address = 0x1d000000, end address = 0x1d01ffff
boot config memory
configuration memory
Failed to read device
Selected device and target: memory mismatch.
---------------------------------
Blank Checking...
Blank check complete, device is not blank.
---------------------------------
programming (using both .hex files found in the Hansel's repository on github):
Loading code from c:\VDM-1 Terminal\VDM1-bootload.hex...
2021-11-01 17:08:02 -0300 - Hex file loaded successfully.
2021-11-01 17:08:08 -0300 - Programming...
Device Erased...
Programming...
The following memory area(s) will be programmed:
program memory: start address = 0x1d007000, end address = 0x1d014fff
configuration memory
Failed to program device
Selected device and target: memory mismatch.
-----------
Loading code from c:\VDM-1 Terminal\VDM1-programmer.hex...
2021-11-01 17:08:33 -0300 - Hex file loaded successfully.
2021-11-01 17:08:40 -0300 - Programming...
Device Erased...
Programming...
The following memory area(s) will be programmed:
program memory: start address = 0x1d000000, end address = 0x1d01f7ff
boot config memory
configuration memory
Failed to program device
Selected device and target: memory mismatch.
More: I'm not sure about the program memory range, set by default to "1d000000-1d01ffff"... I can leave the programmer to make the choice or manually bypass it and set ON or OFF the options "Configuration Memory", "Boot Flash" and "Program Memory" (plus the memory range).
And what is the correct hex file to be used, VDM1- bootload.hex or VDM1-programmer.hex?