This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640: Connecting to a running target

Other Parts Discussed in Thread: CC2640

Hy there,

I run a couple of CC2640 boards for a long term test. After a while, it appears, that ever once in a while one of them does not advertise any more. Battery voltage seems OK, no other obvious problems. After Dis/Reconnecting the battery the device runs without problems.

Is it possible to connect the debugger (CCS 6.1.0) to a running target without resetting it?

I found this link but when doing like described, the target obviously resets.

Best regards

Harald

  • Hello Harald,
    The debugger does not reset the target on connect by default. If that is happening, it may be because the OnTargetConnect() GEL callback function (which automatically gets called on target reset) has a GEL_Reset() call. Check your GEL startup file to see if you have that reset call in your OnTargetConnect() callback. If you are not familiar with GEL, see the CCS Help ('Help -> help Contents').

    Thanks
    ki
  • Thanks, that solved it.
    In the file
    C:\ti\ccsv6\ccs_base\emulation\gel\cc26xx.gel
    I needed to comment the lines 36-39:
    //if(!GEL_IsConnected())
    //{
    // GEL_AdvancedReset("Board Reset");
    //}
    This is probably only valid for my setup, but maybe it gives a hint for someone where to look.