I'm having trouble using the i2c bus on the DM365. This is for a custom solution, and I'm writing the drivers myself.
Right now I can use i2cget/ i2cdetect function from the terminal and get values from the bus. But I cannot use i2cset to change anything. The values themselves seem to be almost static and not changing accordingly (Using a NXP calendar chip and a accelerometer).
Any help of this will be much appreciated. My code is pasted below.