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

Pin remapping for BC805M (nRF52805)

I'm transferring the BLE and TWI code from nRF52 DK to the BC805M evaluation kit. BC805M schematic is given here. Note: BC805M uses nRF52805 Soc. 

If I use the TWI SCL = pin 27 and SDA = 26 pin (these 2 pins exist on nRF52 Dk, but doesn't exist on BC805M), I could see the BLE signal on my phone "nRF Connect" app. 

However, when I change the SCL = pin 16, SDA = pin 12 on BC805M (see below code), BLE signal disappears. 

Any idea, please? Thanks! 

/**
 * @brief TWI initialization.
 */
void twi_init (void)
{
    // Structure for the TWI master driver instance configuration.
    const nrf_drv_twi_config_t twi_config = {
       .scl                = 27,                   // I want to use SCL = Pin 16 on BC805M EK, but BLE signal disappears (BLE signal exists if I use SCL_PIN=27)
       .sda                = 26,                   // I want to useSDA = Pin 12 on BC805M EK, but BLE signal disappears (BLE signal exists if I use SDA_PIN=26)
       .frequency          = NRF_DRV_TWI_FREQ_100K,     // Options: 100K, 250K, 400K
       .interrupt_priority = APP_IRQ_PRIORITY_HIGH,
       .clear_bus_init     = false
    };
    
    // Initialize the TWI and check if there is any error
    ret_code_t err_code_twi_init;
    err_code_twi_init = nrf_drv_twi_init(&m_twi, &twi_config, twi_handler, NULL);
    APP_ERROR_CHECK(err_code_twi_init);

    // After we initialize the TWI, we need to enable the TWI immediately
    nrf_drv_twi_enable(&m_twi);
}

Parents Reply Children
Related