This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

I2C with Softdevice nrf_drv_twi_enable hangs

Using SDK 12.1.0

I2C with SoftDevice works on PCA10040 Eval Board with nRF52832 but hangs in the nrf_drv_twi_enable function with TY module EBSGCNZWY which is an nRF51822 version F1. Running without the SoftDevice on the TY module, the I2C works fine.

Parents
  • Just took a look at the datasheet of the module. It says there that it uses a 32MHz clock instead of 16MHz which is used on the nRF51 DK. Have you set the XTALFREQ to 32MHz or configured the UICR register for 32MHz? See this relevant post.

    I did not find out if the module uses a 32KHz crystal, but from the size of the module I would guess not. You have configured the SoftDevice to use 32 KHz RC oscillator? See nrf_clock_lf_cfg_t passed in the SOFTDEVICE_HANDLER_INIT macro/function.

Reply
  • Just took a look at the datasheet of the module. It says there that it uses a 32MHz clock instead of 16MHz which is used on the nRF51 DK. Have you set the XTALFREQ to 32MHz or configured the UICR register for 32MHz? See this relevant post.

    I did not find out if the module uses a 32KHz crystal, but from the size of the module I would guess not. You have configured the SoftDevice to use 32 KHz RC oscillator? See nrf_clock_lf_cfg_t passed in the SOFTDEVICE_HANDLER_INIT macro/function.

Children
No Data
Related