Other Parts Discussed in Thread: CC1310
Tool/software: TI-RTOS
I'm currently trying to do some basic I2C comms work. My eventual goal is to talk to the mpu6050 but I was initially trying to get the I2c example from the resource explorer working. I'm monitoring the comms using the Saleae Logic to confirm if it is working. When I initially ran it I noticed that I wasn't detecting anything on IO4 or IO5 (the default pins), I then tried stepping through the code to see where the problem occurs. The I2C appears to initialise correctly but then during the I2C_transfer call, the program seems to hang. Stepping in deeper the line it fails on is
/* * Wait for the transfer to complete here. * It's OK to block from here because the I2C's Hwi will unblock * upon errors */ SemaphoreP_pend(&(object->transferComplete), SemaphoreP_WAIT_FOREVER);
I've got no idea why this might be the case but the only thing that is confusing me is that the code seems to be referencing the CC26XX family, which seems odd as this is an example for the cc1350, is this correct? if not what would the solution be? Does this example normally work?
I've not had a huge ammount of experience with RTOS's in general and inparticular TI-RTOS so if I could get some help that would be great.
Thanks
George