Hi there,
We have a customized version of sensor tag which has CC2541, accelerometer, gysroscope, magnetometer, IR sensor and an added USB port to charge the rechargeable battery which is connected to the board.
We can connect the CC Debugger (Just these 5 pins: Reset, Ground, Target Voltage, Debug Clock and Debug Data) in a proper way to our PCB via USB and I can get a green LED on PCB and 'download and debug' it with IAR workbench 8081 without any problem.
Like Sensor Tag: there is two LEDs. when I press the side key , first LED start blinking and I can see my customized sensor tag in my iPhone app without any problem.
But the problem is: if I disconnect the board from the CC Debugger, and power it by USB, power supply or fully charged battery it doesn't work and it needs the CC Debugger in loop to work (the second LED keep blinking but nothing happen). If I connected back the CC Debugger it works. If I disconnect and connect the debugger couple of times then it seems the CC2541 doesn't work properly anymore and I need to program it again.
I Checked OAD as well but I got the same problem.
At the same time we have a normal sensor tag which works with the same CCDebugger and embedded code and I can run it even after disconnecting the CC Debugger. So it couldn't be the embedded code or CC Debugger.
Also, If I download the HEX file with flash programmer, even with CC Debugger in loop it gets off after a second.
This is a very important deadline and I appreciate everybody's help and comments. I would be happy to share more information, pictures, schematic if its needed.
Thanks
Bam