CC2640R2F: CC2640R2F on PCB (once code is uploaded) must stay connected to power and not be reset. Otherwise program halts

Part Number: CC2640R2F

Tool/software:

Hi,

I'm having an issue with a custom PCB running code. I upload the code via CCS (I connect the pcb to the on-board debugger of the CC2640R2 LaunchpadXL) and it works fine while connected. However when I hit the reset button on the launchpad, or I disconnect and reconnect power. The program halts. I have another Launchpad running a receiver program that prints the received data to uart, and the pcb is running a transmitter program. And when I reset or disconnect reconnect power, data stops coming in from the receiver. I'd have to reconnect power and re-upload the code to the pcb for it to continue to work. 

Ideally I'd like to simply connect a battery to the pcb and have it start running the program without having to upload the code again.

At the moment, I connect a battery to the pcb for power, and then the rest of the pins to the onboard debugger, upload the code, disconnect the debug pins, and then it works as with only a battery connected. But ideally id like to not have to keep uploading the code.

Purv_version.zip