Hi,
I use nrf5340 and have issue with i2c large buffer send:
In order to flash page to bootloader with my application:
- I defined
- I defined static array with size of 8210
- enabled i2c as master
- bind i2c successfully(i tested with small buffer size and it is working)
- use function i2c_write(i2c_dev, data, size, MAX_ADD);
- i2c_dev - a binded device
- data - pointer to static buffer
- size - 8210
-
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.