Hi,
I am struggling to connect Adafruit MCP9808 to my BeagleBone Black, FreeBSD 12.
I thought it would have been a pice of cake to configure it, instead I got stuck.
I see the device:
But I can't comunicate at all with it via i2c command.
If I repeat the previous command with truss I see:
Unfortunately the issue seems similar to what was reported 5 year ago by this guy:
vzaigrin.wordpress.com
I hope some of you has good news.
bye
Nicola
I am struggling to connect Adafruit MCP9808 to my BeagleBone Black, FreeBSD 12.
I thought it would have been a pice of cake to configure it, instead I got stuck.
I see the device:
Code:
#> i2c -s -f /dev/iic1
=> 18 # that is correct
But I can't comunicate at all with it via i2c command.
Code:
#> i2c -f /dev/iic1 -d r -a 0x18 -o 5 -c 1
ioctl: error sending start condition
If I repeat the previous command with truss I see:
Code:
sigprocmask(SIG_SETMASK,{ },0x0) = 0 (0x0)
mmap(0x0,4096,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,0,0x0) = 538947584 (0x201fb000)
openat(AT_FDCWD,"/dev/iic1",O_RDWR,00) = 3 (0x3)
ioctl(3,I2CSTART,0xbfbfec28) ERR#19 'Operation not supported by device'
ioctl(3,I2CSTOP,0xbfbfec28) = 0 (0x0)
ioctl: error sending start condition
write(2,"ioctl: error sending start condi"...,37) = 37 (0x25)
close(3) = 0 (0x0)
Unfortunately the issue seems similar to what was reported 5 year ago by this guy:
![vzaigrin.wordpress.com](https://vzaigrin.wordpress.com/wp-content/uploads/2014/04/i2c1.jpg)
Working with I2C in FreeBSD on Raspberry Pi
Unix is well-documented system, but on C language There was no support for I2C in FreeBSD-10.0-RELEASE for Raspberry Pi. It appeared in FreeBSD-10.0-STABLE later. Here is instruction how to use it …
I hope some of you has good news.
bye
Nicola