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

Unable to write 8210 bytes on I2C_0 bus in Zephyr RTOS

Hello,

I am using NCS v1.6.0 for nRF52840.

I need to write 8210 bytes to flash via I2C. I configured the I2C0 with NRFX_TWIM and NRFX_TWIM0 enabled in the prj.conf file.

I am using i2c_transfer API from Zephyr to perform I2C operations.

All other I2C transactions for reading writing registers are working. When I try to send 8210 bytes of data. I get following error

[00:00:13.442,718] <err> i2c_nrfx_twim: Error on I2C line occurred for message 1
I2C write retry = -5
 
[00:00:13.443,420] <err> i2c_nrfx_twim: Error 0x0BAE0002 occurred for message 1
 I2C write retry = -5
 
[00:00:13.443,725] <err> i2c_nrfx_twim: Error 0x0BAE0002 occurred for message 0
 I2C write retry = -5

[00:00:13.444,061] <err> i2c_nrfx_twim: Error 0x0BAE0002 occurred for message 0
I2C write retry = -5
 
 [00:00:13.444,366] <err> i2c_nrfx_twim: Error 0x0BAE0002 occurred for message 0

Parents Reply Children
Related