Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[MOVED] pic18f25k20, execution stops when debugger is disconnected

Status
Not open for further replies.

alexxx

Advanced Member level 4
Joined
Apr 17, 2011
Messages
1,013
Helped
273
Reputation
552
Reaction score
270
Trophy points
1,383
Location
Greece
Activity points
7,936
IDE=MPLAB X, emulator=ICD3, MCU=pic18f25k20.

As long as the debugger is running the MCU code runs ok. When I press "stop" from MPLAB, the code stops executing. I checked the reset pin and it is ok in '1' state. Also no breakpoints exist. And when I cut the power and then power on (with ICD3 disconnected), again no response.

So what is holding the code and it is not executing without the debugger running?

EDIT: I posted this in the rf section by accident, if a moderator had the kindness to move it to microcontrollers section...
 
Last edited:

If you manually take control of the power, what comes to mind is that you should't run the code in Debug mode, but as Release mode.

Anyway, the ICD3 debugger is likely configured to took total control of signals, as being unaware about external power reset. Just a guess, but you could check the "Maintain active connection to Hardware Tool" option to see if unchecking it changes something:

hardware_tool_connection.jpg

https://microchip.wikidot.com/mplabx:make-mplabx-run-tool-connection
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top