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.

CC1350: Sensor Controller Task not executing

Part Number: CC1350
Other Parts Discussed in Thread: HDC1000

Hi.
I am trying to comminucate to HDC1000 senor in I2C bus in the CC1350 sensortag board using Sensor Controller Studio v2.0

I took the code based on I2C Light sensor example, but something is not working in my code. I added a field to `output` struct that I use as counter for debug. I initialize this filed to 1 in Task Initialization code, then initialize it to 2 in Task execution code, just before i2cStart() function. When I run the Task Testing, I see that the field stays at '1', which means it does not even executing the first line of the Task Execution code.

What could be the cause for such issue?

Initialization code:

//Start the Task
output.dbg = 1;
fwScheduleTask(1);

Execution Code:

output.dbg += 1;

i2cStart();
i2cTx(0x0043 | I2C_OP_READ);
i2cTx(0xFE);     // Pointer register
i2cStop();

fwScheduleTask(1);

Mappings are:

I2C SCL - DIO4
I2C SDA - DIO5