18F4520 - MPLABX 5.50 - Win 10 - PICkit4 received fresh from Microchip - pic-as 2.32
I tested my program in the micro and seems to run the desired main loop as I expected. However, when trying to look into some registers by debugging, "building for debugging" goes OK but, when when trying to "program for debugging" I get an error message.
The RB5 pin in this (venerable) micro, identified as PGM, is currently not connected to anything.
Current configuration here below (just in case, making LVP = ON) gives the same result. Puzzled to say the least myself.
Suggestions, I would appreciate them.

I tested my program in the micro and seems to run the desired main loop as I expected. However, when trying to look into some registers by debugging, "building for debugging" goes OK but, when when trying to "program for debugging" I get an error message.
The RB5 pin in this (venerable) micro, identified as PGM, is currently not connected to anything.
Current configuration here below (just in case, making LVP = ON) gives the same result. Puzzled to say the least myself.
Suggestions, I would appreciate them.
