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

failed to send 8210 bytes over i2c with i2c_write

Hi,

I use nrf5340 and have issue with i2c large buffer send:
In order to flash page to bootloader with my 
application:

  1. I defined
    1. I defined static array with size of 8210 
    2. enabled i2c as master
    3. bind i2c successfully(i tested with small buffer size and it is working) 
  2. use function i2c_write(i2c_dev, data, size, MAX_ADD);
    1. i2c_dev - a binded device
    2. data - pointer to static buffer 
    3. size - 8210 
    4. MAX_ADD - device i3c address

I get error from function i2c_write ()   -5 with log  [00:01:48.453,613] <err> i2c_nrfx_twim: Error on I2C line occurred for message 0

ret = k_sem_take(&(get_dev_data(dev)->completion_sync),
				 I2C_TRANSFER_TIMEOUT_MSEC)

the ret value is -11 

I need to transmit a full page in one transaction 

Thanks for help.

Parents Reply Children
No Data
Related