<div dir="ltr">Hi,<div><br></div><div>The ATSAM BSP has I2C support, but i am slightly unclear about the API that should be used to access it.</div><div><br></div><div>Using pread() & pwrite() seems to trigger assertions that look like memory corruption in atsam_i2c_bus.c</div><div><br></div><div>The linux I2C userspace API seems to be suggested, which looks like ioctrl(), but there is also a <span style="color:rgb(0,0,0);white-space:pre-wrap">i2c_smbus_write_byte() type interface.</span><div><br></div><div><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br></div></div></div>