I2C configuration (zephyr,concat-buf-size = <65536> and zephyr,flash-buf-max-size = <65536>) is throwing stack overflow error

HI Nordic Team,

I am developing a firmware to interface CH101 sensor, which has a firmware loading of 2048 bytes of data over I2C.

I declared buffer size as below in device tree and in program I have given 128 bytes transfer in single I2C write call then it worked:

I want to write entire 2048 bytes in single I2C transfer, then I increased the buffer size to 65536 as mentioned below in device tree:

 ...

this is the error I am facing,

Q1: Will I2C supports buffer size of maxmium 65536?

Q2: If I2C buffer max size supports 65536 then why I2C write for 2048 bytes is getting failed? In fact, the board is getting reset when I declare this much buffer size when the particular I2C_write is called.

As I am running out of time, I would expect quick response.

Br,

Naveen.

Parents Reply Children
Related