Code halts when JTag is removed

When JTag is removed, the code halts. Is this normal? How can I make the code run continously even if JTag is removed??

Thank you


You do not say whether you are running from FLASH or from the debugger.

If yo want to be able to run without the debugger attached (the JTAG) then you must write your application to FLASH and reboot. If you want to run from the debugger, then the JTAG must be attached.