Part Number: CC1352R
Tool/software: Code Composer Studio
I'm trying to debug a crash issue, and thus connect to a running target without causing a reset or change in the program counter position. I've tried doing this by manually launching a target configuration and with all the "reset on connect, etc..." options disabled. I even modified the "cc26x2.gel" file as instructed by the inline comments.
Surprising enough, just the act of launching the target configuration (not even connecting to the target), causes a reset on the device. The Example code I'm using is essentially a blinky application running in a TI-RTOS task using sleep(1) between blinks. The sleep(1) should be resulting in the idle task putting the device into the Standby state during the sleep(1) call. Suggestions?
StartUp(int major, int minor, int patch)
{
/* Initialize memory map */
memorymap_init();
/* Debugger specific handling */
if(GEL_MatchesConnection(".*TIXDS.*") == 1)
{
GEL_LoadGel("$(GEL_file_dir)/cc26xx_connect_util.gel");
GEL_LoadGel("$(GEL_file_dir)/cc26x2_xds.gel");
DefineResets(0);
// Issue Board Reset to ensure device is in a known state
// Note: If you want to attach to a running target without resetting the
// device, you must comment out the following 4 lines:
//if(!GEL_IsConnected())
//{
// GEL_AdvancedReset("Board Reset");
//}
}
CCSv8.2.0, CC1352R1 LaunchPad w/Onboard XDS110 updated to latest CCSv8.2.0 emulation drivers.
Thanks,
Stuart