Hi,
I have modified the uart_echo code to read the Accelerometer data on PC UART. UART echo code was working fine then I added some necessary files to support MPU9250 initialization. It compiles successfully but hangs during debugging in I2CCC26xx.c file at line no 817
/* Acquire the lock for this particular I2C handle */
Semaphore_pend(Semaphore_handle(&(object->mutex)), BIOS_WAIT_FOREVER);
Here is my initialization code
/* Call board init functions */
Board_initGeneral();
Board_initUART();
retParams = SensorI2C_open();
retParams = SensorMpu9250_init();
SensorMpu9250_enable(0x0F); //Acc+Gyro+Mag+WoM+-2g
retParams = SensorMpu9250_accRead((uint16_t *)sensorData);
It stuck at SensorMpu9250_init() but when I debug it and went inside files to file to find out where it is causing the problem. I have found it hangs at
/* Acquire the lock for this particular I2C handle */
Semaphore_pend(Semaphore_handle(&(object->mutex)), BIOS_WAIT_FOREVER);
What could be wrong in initialization?