Hello,
Excuse me for my English, it is the first time that I make a request on this site, I am a retiree with the hobby of electronics.
I tested several dsPIC33FJ (64/128) (GP / MC) 802 on a test board and was able to debug correctly by getting the output pin state change.
The board has only the minimum connections for programming with 0.1uF capacitors on the power supply and tantalum capacitor on VCAP.
Then I tried 3 different dsPIC33EP512GP502 on the same board, if I program for production I get the message:
Device Erased ...
Programming ...
The following memory area (s) will be programmed:
program memory: start address = 0x0, end address = 0x3ff
configuration memory
Programming / Verify complete
But it doesn't run the program.
If I program it for debugging I get the message:
Device Erased ...
Programming ...
The following memory area (s) will be programmed:
program memory: start address = 0x0, end address = 0x3ff
configuration memory
Programming / Verify complete
The target device is not ready for debugging. Please check your configuration bit settings and program the device before proceeding. The most common causes for this failure are oscillator and / or PGC / PGD settings.
I have verified that the memory of the dsPIC33EP512GP502 is always written, deleted and read correctly.
Initially I tried the dsPIC33EP512GP502 in a project configured with MCC always getting the same results.
Is there anyone who has any suggestions for me?
I enclose an example with the two configurations.
Thanks in advance
Configuration used:
Windows 10 updated
Pickit3 both original and clone
MPLAB X 5.50 and 6.00
XC16 v1.70 and v2.00 free