libi2c icon indicating copy to clipboard operation
libi2c copied to clipboard

Segmentation fault when trying to write to sensor

Open mdupuie opened this issue 4 years ago • 2 comments

When I try to write to my sensor i am getting a segmentation fault. I have narrowed it down to tmp_buf is being set to basically -inf after going through i2c_iaddr_convert. Do you have any idea as to why that may be happening?

Thanks in advance for any help :)

mdupuie avatar Sep 12 '20 20:09 mdupuie

Has your problem been solved? I also encountered the same problem

mailonghua avatar Jan 04 '22 06:01 mailonghua

You need to pay attention to the implementation of i2c_write, please do not set the page_size in the device to zero, otherwise the cause of copy error will occur

mailonghua avatar Jan 04 '22 09:01 mailonghua