I have got no problems debugging with the latest version of Creator 3.3 CP3. Your problem might be related to debug settings for your project. Check in .cydwr view, system tab that the debug settings is not set to GPIO.
1 of 1 people found this helpful
Thank you for your response.
Anyway, our problem was we had checked "Enable Device Protection", just in case if it can helps anyone.
Hi Bob, Thanks for the post! I too had the same error message. "Debugger exited unexpectedly during run. Encountered error", and it was because I had just set the debug settings to GPIO in .cydwr view, system tab. The reason I did that is because I read app note AN86233, (PSoC® 4 Low-Power Modes and Power Reduction Techniques) and that was the recommendation to get the lowest power. In the app note is says "This means that the only thing you cannot do is attach the debugger to a running project." I am using the 5 wire interface on a PRoC module. Trying to get sub 1 mA current. I expect in Deep-sleep mode to get 1.3uA but I am a thousand fold away from that now. Just now digging. Looks like I cannot use the GPIO option in the debug interface because I am using the 5 pin interface, correct? Any pointers on how to get that data sheet value of 1.3uA in Deep-sleep mode would be appreciated. I think i am in that mode but not sure what is going on...yet.
Debugging is not just those two pins, there is a lot of internal hardware which is enabled together with the swd option. This is the cause for some of the excess current.
Before entering deep sleep you should
- Set all unneeded pins to Hi-Z
- Set every component to sleep by calling ComponentName_Sleep()
- Stop the IMO and switch to ILO
Then go to deep sleep.
After leaving the sleep mode reverse all actions taken.