Other Parts Discussed in Thread: CC1310
Tool/software: Code Composer Studio
Hi!!!
I am using the CC1310 LaunchPad with SimpleLink CC13x0 SDK 3.20.00.23 and TI 15.4-Stack Sensor Example.
I tried to add a Uart_read Task like this:
#define SERIAL_TASK_STACK_SIZE 900
static uint8_t serialTaskStack[SERIAL_TASK_STACK_SIZE];
Semaphore_Handle SerialSem;
uint8_t varTest;
Void SerialTaskFxn(UArg a0, UArg a1)
{
while(1)
{
UART_read(Board_UART0, &varTest, 1);
Semaphore_pend(SerialSem, BIOS_WAIT_FOREVER);
}
}
void readCallback(UART_Handle handle, void *rxBuf, size_t size)
{
Semaphore_post(SerialSem);
}
Void appTaskFxn(UArg a0, UArg a1)
{
Task_Params taskParams;
Semaphore_Params semParams;
/*All example code remains*/
/* Add code below */
Semaphore_Params_init(&semParams);
semParams.mode = Semaphore_Mode_BINARY;
SerialSem = Semaphore_create(0, &semParams, NULL);
Task_Params_init(&taskParams);
taskParams.stack = &serialTaskStack;
taskParams.stackSize = SERIAL_TASK_STACK_SIZE;
taskParams.priority = 1;
Task_construct(&SerialTask, SerialTaskFxn, &taskParams, NULL);
while(1)
{
Sensor_process();
}
}
The compilation works fine!!! But when I tried to upload appears the follow mensage
Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
Cortex_M3_0: GEL Output: Board Reset Complete.
Cortex_M3_0: Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.3.0.00003)
Cortex_M3_0: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.3.0.00003)
I have already tried slowly Jtag clock, but didn't work also.