zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.89k stars 6.63k forks source link

drivers: i2c: nrf: i2c error with burst write #39588

Closed ck-telecom closed 3 years ago

ck-telecom commented 3 years ago

Describe the bug sending to bma421 config file buffer(a very huge size buffer), using i2c_burst_write with error the following error:

[00:00:00.698,822] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
[00:00:00.698,852] <err> BMA421: i2c_burst_write error -28
[00:00:00.700,042] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
--- 9 messages dropped ---
[00:00:00.706,054] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
--- 9 messages dropped ---
[00:00:00.711,975] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
--- 9 messages dropped ---
[00:00:00.717,956] <err>

To Reproduce Steps to reproduce the behavior: 1 build bma421 driver and flash 2 see error Expected behavior i2c_burst_write should work without error?

Impact What impact does this issue have on your progress (e.g., annoyance, showstopper)

Logs and console output

[00:00:00.698,822] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
[00:00:00.698,852] <err> BMA421: i2c_burst_write error -28
[00:00:00.700,042] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
--- 9 messages dropped ---
[00:00:00.706,054] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
--- 9 messages dropped ---
[00:00:00.711,975] <err> i2c_nrfx_twim: Need to use concatenation buffer and provided size is insufficient (1 + 16 > 16). Adjust the zephyr,concat-buf-size property in the "I2C_0" node.
--- 9 messages dropped ---
[00:00:00.717,956] <err>

Environment (please complete the following information):

Additional context you could check my bma421 driver https://gitee.com/fwatch/pinetime/tree/develop/drivers/sensor/bma421/bma421.c

ck-telecom commented 3 years ago

close