Replies: 1 comment 2 replies
-
I think we'll need a little more context than the small snippets of code, you provided, in order to give a meaningful answer. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Device 1
i2c1: arduino_i2c: i2c@40005400 {
reg = < 0x40005400 0x400 >;
...
}
Device 2
i2c1: i2c@40004000 {
reg = < 0x40004000 0x1000 >;
...
}
I am trying to transfer data form Device 1 to Device 2 using I2C (As described above)
The following code (In Device 1) fails
uint8_t buf[5] = { 0x43, 0x43, 0x43, 0x44, 0x45 };
ret = i2c_write(i2c_dev, buf, sizeof(buf), 40004000);
What is incorrect here?
Beta Was this translation helpful? Give feedback.
All reactions