This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

interrupt based i2c with softdevice

Hello,

I am using SDK 9.0 and softdevice 8.0 and testing on Evaluation board. I referred the i2c example driver suggested by Torbjorn in this link

I wrote a simple driver for eeprom and succeeded without the softdevice. But when I integrate with the softdevice, data is neither writing nor reading from eeprom. I am not getting i2c interrupts.

Can anyone help me procedure for i2c driver with softdevice?

Update: It is working when I commented the sd_nvic_SetPriority(SPI0_TWI0_IRQn, 1); and enabled using NVIC. I am using template application workspace and integrated i2c driver. But now BT is not advertising. The voltage on the board is 3.3V. Can anyone help me regarding drivers with BT stack?

Regards, Sowmya

Parents
  • For BLE advertise I am using the same main.c file provided by nordic to initialise stack and SDK but it was not advertising and was hanged in SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);

    Now I changed the source to NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION, it is working.

    As I am doing some tests on the BT stack, it was working with clock source NRF_CLOCK_LFCLKSRC_XTAL_20_PPM.

Reply
  • For BLE advertise I am using the same main.c file provided by nordic to initialise stack and SDK but it was not advertising and was hanged in SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);

    Now I changed the source to NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION, it is working.

    As I am doing some tests on the BT stack, it was working with clock source NRF_CLOCK_LFCLKSRC_XTAL_20_PPM.

Children
No Data
Related