Other Parts Discussed in Thread: CC1310
I have a rookie question and decided to take my beating and potentially get an answer vs. continuing to beat my head against the wall wondering why.
- I am using Code Composer Studio version 12.
- I have a CC130 Launchpad as my device and I am loading the Resource Explorer example under: SimpleLink CC13x0 SDK - 4.20.02.07 ->Examples ->Development Tools ->CC1310 Launchpad ->Demos -> portable -> TI-RTOS -> CCS Compiler -> portable
- I made a simpler modification to mainrtos.c (two lines of code):
/*
* ======== main_tirtos.c ========
*/
#include <stdint.h>
#include <unistd.h>
/* POSIX Header files */
#include <pthread.h>
.
.
/*
* ======== main ========
*/
int main(void)
{
pthread_t thread;
pthread_attr_t attrs;
struct sched_param priParam;
int retc;
/* Call driver init functions */
Board_init();
.
.
// --- put thread to sleep for a short time
sleep(1);
/* Initialize the GPIO since multiple threads are using it */
GPIO_init();
.
.
}
- I compiled linked and loaded onto the CC1310 microcontroller and stepped through with the CCS debugger
- When the sleep(1) command is executed in the CCS debugger, it never returns from the call, possibly because it has transitioned to low power/standby mode(?). I saw anecdotal evidence of in this thread: https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz-group/sub-1-ghz/f/sub-1-ghz-forum/1028585/cc1310-where-is-it-documented-that-sleep-will-put-the-1310-in-standby-mode?tisearch=e2e-sitesearch&keymatch=CC1310%25252525252520AND%25252525252520sleep# and this thread: e2e.ti.com/.../4095635
Can anyone shed light on this for me?
Thank you...
JRW