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

Cant find clear definintions of error codes, or what they mean. #7

Open
prs2026 opened this issue Jul 19, 2023 · 3 comments
Open

Cant find clear definintions of error codes, or what they mean. #7

prs2026 opened this issue Jul 19, 2023 · 3 comments

Comments

@prs2026
Copy link

prs2026 commented Jul 19, 2023

I am not sure if I am just missing something, or if there is just no documentation for the error codes.

I am using the BMI088 on a model rocket flight computer for data gathering, but cant get past the initialization phase. I am getting a -5 error code for the accelerometer and a -2 error code for the gyro. I am not sure what these codes mean, and cant find any documentation on it.

If a link to this documentation could be provided it would be greatly appreciated.

@mehtivakili
Copy link

can you provide an image and more information of the error you got

@prs2026
Copy link
Author

prs2026 commented Jul 20, 2023

I used the defualt BMI088 accel&gyro .begin() functions, and they returned a -5 and -2 respectively, which i assigned to an int type, that was printed to the serial moniter. I resolved this by removing the softreset() calls from the begin() functions, so it is working now but I still dont know what the error codes mean

@mehtivakili
Copy link

if you go the library you can monitor what each error type code mean for example this is what you can find:
/* enable the accel /
if (!setPower(true)) {
return -2;
}
/
enter active mode /
if (!setMode(true)) {
return -3;
}
/
self test /
if (!selfTest()) {
return -4;
}
/
soft reset /
softReset();
/
enable the accel /
if (!setPower(true)) {
return -5;
}
/
enter active mode /
if (!setMode(true)) {
return -6;
}
delay(50);
/
set default range /
if (!setRange(range)) {
return -7;
}
/
set default ODR /
if (!setOdr(odr)) {
return -8;
}
/
check config errors /
if (isConfigErr()) {
return -9;
}
/
check fatal errors */
if (isFatalErr()) {
return -10;
}

maybe there is something wrong with your hardware or communication protocol

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