I know this topic has been raised before in theses places but I have tried all they suggest.
RE: i2c_nrfx_twim: Error 0x0BAE0001 occurred for message 0
i2c_nrfx_twi: Error 0x0BAE0001 occurred for message 0
I have tried the code on multiple boards and all give the same repeated error when calling the API function eeprom_write once. The eeprom in question is https://www.microchip.com/en-us/product/at24c02d. The device tree entry is below. I have also tried putting a bias-pull-up on the pin control as suggested in some places. I2C signals look fine, the ACK is there and eeprom_read works without any error.
Connect SDK 2.3.0 and now 2.4.1 in an effort to resolve the error, no luck.
&i2c1 { compatible = "nordic,nrf-twim"; status = "okay"; pinctrl-0 = <&i2c1_default>; pinctrl-1 = <&i2c1_sleep>; pinctrl-names = "default", "sleep"; micro_eeprom: micro_eeprom@50 { compatible = "atmel,at24"; reg = < 0x50 >; status = "okay"; size = < 256 >; pagesize = < 8 >; address-width = < 8 >; timeout = < 10 >; }; };
i2c1_default: i2c1_default { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 22)>, <NRF_PSEL(TWIM_SCL, 0, 4)>; }; }; i2c1_sleep: i2c1_sleep { group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 22)>, <NRF_PSEL(TWIM_SCL, 0, 4)>; low-power-enable; }; };