BMP280 baro issues on NAZE32 Rev6
iNav 1.3.0.- RC1 creates the same problems when detecting the magnetometer like version iNav1.2.0 did before.
Magnetometer on my NAZE32, a HMC5883, is not found anymore.
BMP280 is a barometer. What sensor has issues - magnetometer or barometer?
Sorry, mixed it up !
- barometer = BMP280 (barometer on board)
- magnetometer = HMC5883 (magnetometer is on the board as well)
- CLI status command shows a huge number of i2C errors.
It is a NAZE32 Rev6. 10DOF from Bangood. With iNav version 1.2.1 everything works fine. And this time - when I compile the iNav development version 1.3.0-RC1 of iNAV with cygwin64 myself - it shows the same behavior like the downloaded NAZE.HEX file from github. No magnetometer is detected with iNav 1.3.0-RC1.
Ok. Please share the bootlog output
Ok here is status and bootlog for iNAV 1.2.1 and for iNav 1.3.0 for the same NAZE32 Rev.6 10 DOF FC:

Hm... interesting. NAZE Rev5 has no issues. @all, can somebody else confirm the issue on NAZE Rev6 ?
I just dug up and flashed a real Rev6 and can verify the same issue on mine.
I also can confirm that Rev.5 works with iNav 1.3.0-RC1!
I think the huge number of 24650 I2C errors shown in the status log of iNav 1.3.0-RC1 gives us a hint what is causing this bug. And have a look at the completely different and higher system load of my FC with iNav 1.3.0-RC1
I have flashed right now a NAZE(afromini rev3) with 1.3.0.RC-1 and I have a enormous number of I2C errors as well. I cannot arm it, neither six-steps calibration.
Ok, looks like we need someone who is in posession of Naze rev6 and a signal analyzer to get a grip what's happening on i2c bus. Apparently it's another i2c-related issue.
I don't what this to hold off the 1.3 release though, we can release 1.3 with a known bug.
DE, let me cite you from RCGroups: "Maybe we should stop support for the NAZE32" .
As the NAZE32 is a little outdated and causes a lot of problems (does not matter whether it is in Betaflight, Cleanflight or iNav; have look here : https://www.youtube.com/watch?v=czjtg-iXjxE9)
maybe this is the moment when iNav development should take the lead and officially skip any support for the NAZE32.
What do you think?
@digitalentity , I agree - we can release 1.3 with this as a known bug - I've updated the release notes accordingly.
@jstremmler , I'm against dropping support for NAZE32. Reasons include:
- While it's no longer advisable to buy a NAZE32, there are plenty of existing aircraft out there which have NAZE32s in them
- Many of the brushed flight controller boards are based on NAZE32 (MicroSciSky, for example). Although increasingly brushed boards are F3 based.
- Bugs found with the NAZE32 may indicate underlying bugs in the code, not necessarily NAZE32 specific problems.
- The discipline of writing code for a smaller target has a tendency to improve the overall quality of the code.
@jstremmler I don't think dropping any target is a good idea unless absolutely necessary. @martinbudden gave a very good list of reasons why we sould keep supporting this target.
As for this bug, it's likely still related to I2C driver. Something we do when initializing i2c bus causes some i2c device to go haywire. I suspect the bmp280 barometer device.
Do we have any other F1/F4 target with bmp280 except NAZE Rev6? I suspect not, at least not many and not widely used.
Tried my NAZE Rev6. 10DOF with Betaflight 3.0.1 (latest version). It shows same behavior! The magnetometer is not detected....
@digitalentity Did you mean F1 or F4 or F1 to F4?
My F3 spracingf3 mini is BMP280, but that is an F3
@jstremmler I think the additional sensors are disabled in betaflight on default. Try to activate the manometer in the config tab in the betaflight configurator or in the CLI.
@oleost, I ment F1 and F4 - they share the same I2C bus code. F3 has different I2C implementation.
BTW, @jstremmler can you test with 3 more configurations:
- Both mag and baro disabled
set mag_hardware=1
set baro_hardware=1
- Baro auto, mag disabled
set mag_hardware=1
set baro_hardware=0
- Baro disabled, mag auto
set mag_hardware=0
set baro_hardware=1
I'm curious if this is related to a specific chip
@skaman82 I am aware of that and tried to switch everything on in betaflight, but magnetometer did not work.
And here are the results of the tests:
- set baro_hardware=1 and set mag_hardware=1 works, no I2C errors but as both are switched off I don't have them and cant use them.
- set mag_hardware=1 and set baro_hardware=0 or =4 switches the barometer on (it works!) but shows huge amount of i2C errors
- set mag_hardware=0 or =2 and set baro_hardware=1 switches the magnetometer on (it works!), the barometer off and shows zero !!! I2C errors
- set mag_hardware=0 or 2 and set baro_hardware=0 or =4 switches the magnetometer to off (doesn't work anymore) , the barometer to on (it works!) and shows a huge amount of I2C errors.
For me this looks like switching the barometer BMP280 to on is causing the problem....
And btw. test results were for the NAZE32 Rev6. 10DOF! (same as above). I have repeated them for a different NAZE32 Rev6. 7DOF (the one with only the barometer on the board) and a GPS with an external HMC5883 magnetometer in the GPS and got the same results.
Hm... looks like a bmp280 issue. I think I have a bmp280 breakout board I can connect to a Naze Rev5 and test.