Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when trying to write to sensor #7

Open
mdupuie opened this issue Sep 12, 2020 · 2 comments
Open

Segmentation fault when trying to write to sensor #7

mdupuie opened this issue Sep 12, 2020 · 2 comments

Comments

@mdupuie
Copy link

mdupuie commented Sep 12, 2020

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 :)

@mailonghua
Copy link

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

@mailonghua
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants