Apollo3 I2C example

Thanks again,

I got the reading function working by now and the configuration for the I2C is basically identical to yours.

I just realized it doesn’t matter how many address bits are being used due to the typecasting to a uint32_t. :roll:

Meanwhile I am pretty familiar with the datasheet, although it has rather led to confusion, because the am_hal_iom_blocking_transfer function is way more abstract than the low level description of the I2C communication in the datasheet.

There is just one more issue with my write function. Thus I would really appreciate if you could share this precious piece of code as well, which should finally allow me to make use of the full functionality of this amazing IMU.

One could consider to add an I2C example with your read and write functions to the boards_sfe repository, so that others have it easier to get started with I2C in the Ambiq Suite SDK…

with kind regards,

Menaures