Hello All,
I am Integrating ADXL362 sensor with CC2650 to develop a sensor based application.
Hardware set-up :
CC2650EM+SmartRF06EB connected with ADXL362 evaluation board
Steps followed in software .
1. In main function, I have called PIN_Init function to have safe default settings for GPIO
2. Open the PINs and get the handle
ADXL362PinHandle = PIN_open(&ADXL362PinState, ADXL362PinTable);
3. Registering Interrupt callback
PinStatusRet = PIN_registerIntCb(ADXL362PinHandle, adxl362Callback);
4. Configure PINs
PinStatusRet = PIN_setConfig(ADXL362PinHandle, PINCC26XX_BM_WAKEUP, Board_ADXL_INT1 | PINCC26XX_WAKEUP_NEGEDGE);
5. Initialising SPI
SPI_Params_init(&AdxlParams);
AdxlHandle = SPI_open(CC2650_SPI1, &AdxlParams);
6. Initialising and configure ADXL362 sensor
Whenever I am setting ADXL362 FIFO watermark interrupt , Immediately getting into adxl362Callback function. After that My code hangs and subsequent interrupts are not generated.
Guide me on this
Thanks in advance