Uart don't work after using I2C

Hi !

I use the NRF52832 and with Segger Embeded Studio to code.

The problem I have is that for some reason, my uart don't work after using an I2C write protocol and I must re-initialize it after each use of the I2C.

void I2C_write_16bit(struct i2c_master_packet *const packet){

    uint16_t dev_id    = packet->address;
    uint8_t *data     = packet->data;
    uint16_t len      = packet->data_length;
    
    APP_ERROR_CHECK(nrf_drv_twi_tx(&hi2c0, dev_id, data, len, false));
    nrf_delay_ms(100);
}

It's really cumbersome and I was wondering if you have some ideas about the source of the problem ?

Parents Reply Children
No Data
Related