Anyone got an i2c device working?

Me again! Trying to get an i2c device working. i2cdetect finds my device but the code doesn’t work. Based on the output from a logic analyzer, my cpp code never accesses the i2c bus at all, so must be making a fundamental mistake.

Some configuration step I might be missing?

The code is compiled using i2c/smbus.h. Is that likely to be an issue? Would prefer to stick to that to avoid code rewrites if possible.

Thanks

Have you tried your code on different hardware?

Yes, the code works well on a Raspberry Pi 4.

Because we do not the details of your cpp code, we can not offer further help.
Also you can provide the dmesg log.
Thanks.