bmi088-arduino icon indicating copy to clipboard operation
bmi088-arduino copied to clipboard

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

Open prs2026 opened this issue 1 year ago • 3 comments

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.

prs2026 avatar Jul 19 '23 04:07 prs2026

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

mehtivakili avatar Jul 20 '23 17:07 mehtivakili

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

prs2026 avatar Jul 20 '23 22:07 prs2026

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

mehtivakili avatar Jul 29 '23 05:07 mehtivakili