2012-12-18, 15:10:31
Ok, quick update.
I could not see any difference (except mcu, and speed) between my current project source compared to the earlier source which is confirmed to work on a 25K20/22 mcu.
As I continued to measure and try different settings I added a bsf command in the user code space to the mcu pin (RD7) that controls a relay on my board. Basically I wanted to hear the click when the relay switches state as a reassurance that the user code space is executed without having to measure.
Anyways, the relay switches state upon startup and I continue by pressing the 'Write'-button.
What happens here is puzzling me, the relay drops again as if mcu gets reset. So I started measure the pins and sure enough, everytime I press 'Write' the mcu resets and gets stuck there. Only way to bring it out of that state is cycle power or MCLR-pin.
This does not occur with 'Check BL' and config STVREN On or Off makes no difference.
I could not see any difference (except mcu, and speed) between my current project source compared to the earlier source which is confirmed to work on a 25K20/22 mcu.
As I continued to measure and try different settings I added a bsf command in the user code space to the mcu pin (RD7) that controls a relay on my board. Basically I wanted to hear the click when the relay switches state as a reassurance that the user code space is executed without having to measure.
Anyways, the relay switches state upon startup and I continue by pressing the 'Write'-button.
What happens here is puzzling me, the relay drops again as if mcu gets reset. So I started measure the pins and sure enough, everytime I press 'Write' the mcu resets and gets stuck there. Only way to bring it out of that state is cycle power or MCLR-pin.
This does not occur with 'Check BL' and config STVREN On or Off makes no difference.