Hi, When I compile this without __kernel__ device cannot be initialized, so I found that when I use these lines if (ioctl(fd, I2C_SLAVE, dev.id) < 0) { fprintf(stderr, "Failed to acquire bus access and/or talk to slave.\n"); exit(1); } Then bmi initializes but no data is read, I can see only 0.0 at any data. When I comment on this section then and try to build with kernel flag then I got many errors due to undefined type.
... View more