Hi Dear friends,
My customer has a strange issue with CC1350 5x5 package I2C IO configuration conflict with GPIO configuration issue.
The main steps they do:
Configure I2C IO:
GPIO_init(); I2C_init(); I2C_Params i2cParams; I2C_Params_init(&i2cParams); i2cParams.bitRate = I2C_100kHz; i2c = I2C_open(CC1350_LAUNCHXL_I2C0, &i2cParams); if (i2c == NULL) { while (1); }
Then PIN_open() will never return success.
为了规避问题1,在main函数入口地方Board_initGeneral();里面调用PIN_init(BoardGpioInitTable); 在BoardGpioInitTable中填入需要控制的GPIO口,如下:
Then to avoid this, in Board_initGeneral() of main() funcgion, called PIN_init(BoardGpioInitTable), and in BoardGpioInitTable, add the GPIOs that need to be used:
The GPIOs are configured as below:
Then DIO 4 and DIO 8 work ok, but DIO 6 and DIO 7 could not be controlled by code.
Do we miss anything for the IO configuration on 5x5 package?
Thanks!