Weird GPIO problem and debugger STR750

Hi guys, I’ve tried searching for a similar problem to mine, but have come up empty handed. I’m using the STR750 dev board along with the USB tiny JTAG.

I have a simple program polling 2 GPIOs as inputs, which in turn outputs 2 different GPIOs. The program works flawlessly as long as the JTAG or USB is connected. As soon as I unplug it, the outputs initialized are pulsing randomly.

Another problem I’m having is getting the debugger to work. I know it’s probably something simple, but I just can’t trace the cause of it. The problem is it returns a “program not running” and “no hardware breakpoints set”.

Thanks for any help you guys can provide.