inav icon indicating copy to clipboard operation
inav copied to clipboard

Matek F722 STD Baro fail in 3.0

Open RipperGOT opened this issue 5 years ago • 31 comments

The barometer indicates -44220 in the sensors tab , with previous version does not happen . imagen_2021-06-21_153551

RipperGOT avatar Jun 21 '21 13:06 RipperGOT

@RipperGOT please be more specific, as can not reproduce on 3.0 final and F722-STD

image

DzikuVx avatar Jun 21 '21 14:06 DzikuVx

please be more specific, as can not reproduce on 3.0 final and F722-STD

Sorry, I am new to writing on Github and my english is very poor. What info do you need? When I go from 2.6 to 3.0 (stable) this happens to me with the baro. When I restore to an older firmware (2.6 or 3.0 release candidate) it doesn't happen. I don't have any GPS or MAG connected. Only flash firmware and CLi "defaults" Captura de pantalla 2021-06-21 170038

RipperGOT avatar Jun 21 '21 15:06 RipperGOT

Well, the INAV reports BARO as not working. Check on Confioguration tab, set to AUTO and let firmware to auto detect

DzikuVx avatar Jun 21 '21 16:06 DzikuVx

Well, the INAV reports BARO as not working. Check on Confioguration tab, set to AUTO and let firmware to auto detect

I did try what you told me, but the result is the same. Inav if it recognizes the baro and indicates that it works. But it keeps telling me -44223 ...

I also tried different settings with this, but the problem remains : baro_median_filter = ON baro_cal_tolerance = 150

status

System Uptime: 24 seconds Current Time: 2041-06-28T01:04:00.000+00:00 Voltage: 0.00V (1S battery - NOT PRESENT) CPU Clock=216MHz, GYRO=MPU6500, ACC=MPU6500, BARO=BMP280 STM32 system clocks: SYSCLK = 216 MHz HCLK = 216 MHz PCLK1 = 54 MHz PCLK2 = 108 MHz Sensor status: GYRO=OK, ACC=OK, MAG=NONE, BARO=OK, RANGEFINDER=NONE, OPFLOW=NONE, GPS=NONE SD card: Startup failed Stack size: 6144, Stack address: 0x20010000, Heap available: 2028 I2C Errors: 50, config size: 7195, max available config: 16384 ADC channel usage: BATTERY : configured = ADC 1, used = ADC 1 RSSI : configured = ADC 3, used = none CURRENT : configured = ADC 2, used = ADC 2 AIRSPEED : configured = none, used = none System load: 7, cycle time: 1019, PID rate: 981, RX rate: 49, System rate: 9 Arming disabled flags: ACC RX CLI VTX: not detected

RipperGOT avatar Jun 21 '21 16:06 RipperGOT

3.00-RC2 MatekF722 2021-5-29 Release candidate Firmware Baro works imagen_2021-06-21_190819

RipperGOT avatar Jun 21 '21 17:06 RipperGOT

Same issue here with the Matek F722-WPX, when I flash the F722-PX target or 3.0-RC2 everything is fine. There are more reports of this issue, please look at this facebook post: https://www.facebook.com/groups/INAVFixedWing/permalink/1642063025995489

According to these reports the folowing targets are having the same issue:

  • Matek F722-Wing
  • Matek F722-WPX
  • Matek F405-Wing

DanO83 avatar Jun 22 '21 07:06 DanO83

Please provide full configuration dump with baro working on RC and not working on 3.0-Final.

DzikuVx avatar Jun 22 '21 07:06 DzikuVx

I'm not having any issues with the Matek F405-WSE, which uses the same target as the Wing.

avsaase avatar Jun 22 '21 08:06 avsaase

And on top of that, there are no code changes between RC2 and final that touch on the Baro, sensors or altitude estimation. https://github.com/iNavFlight/inav/compare/3.0.0-RC2...3.0.0-final

@RipperGOT are you flashing with FULL CHIP ERASE ?

DzikuVx avatar Jun 22 '21 08:06 DzikuVx

And on top of that, there are no code changes between RC2 and final that touch on the Baro, sensors or altitude estimation. 3.0.0-RC2...3.0.0-final

@RipperGOT are you flashing with FULL CHIP ERASE ?

Of course friend, i'm flashing with FULL CHIP ERASE. I have tried different ways of flashing, erase, no erase, no reboot ... He left you in this link the 2 Dump files with the 2 versions. In the 2 files only the firmware is flashed, without configuration, only "defaults" after flashing.

https://github.com/RipperGOT/Matek-F722

RipperGOT avatar Jun 22 '21 09:06 RipperGOT

Here are my dumps:

https://github.com/danielolsman/Matek-F722WPX-Baro_fail

only WPX-RC2 and PX-Final targets are working fine on my F722-WPX

DanO83 avatar Jun 22 '21 09:06 DanO83

if I compare my dump files, there isn't much difference that could explain the baro failure, maybe something went wrong with compiling these files???

DanO83 avatar Jun 22 '21 10:06 DanO83

I tested my F722-WPX and got the same results. Barometer checks out fine. But Barometer sensor data is incorrect.

Its related to Blackbox SD data logging.

If the SD card is loaded when the setting files are entered and the blackbox logger is enable in the DUMP / DIFF ALL files.....Or the SD card is not loaded and the BB logging is turned off after a flash/settings load. The problem doesn't appear. But once the logger is turned off or the card ejected; the problem reappears.

I also tested it with an F722-Wing and a F405-WSE and got the same result. While my boards with SPI_FLASH didn't experience this issue. At a guess... It most likely effects all boards with SD loggers.

I had a quick look through what was added in that time frame. I'm not sure how related this could be.. But the FlyWooF745 commit on May 28th has - #define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT on the FLYWOOF745NANO target. The GOKU only has SPI_FLASH.

https://github.com/iNavFlight/inav/blob/2df45445874152adf7a80010f8c001e37e474904/src/main/target/FLYWOOF745/target.h

Jetrell avatar Jun 24 '21 02:06 Jetrell

@Jetrell I have tested what you indicate and the baro works again on the F722-STD. Great!!!!! No SD, no fly!

RipperGOT avatar Jun 24 '21 21:06 RipperGOT

@DzikuVx image

MATEKSYS avatar Jun 25 '21 04:06 MATEKSYS

So let me get this straight: it happens only on boards with DPS310 , right?

DzikuVx avatar Jun 25 '21 07:06 DzikuVx

BMP280 boards are not affected?

DzikuVx avatar Jun 25 '21 07:06 DzikuVx

@DzikuVx This issue happens on BMP280 board also, Tested on F722-SE with BMP280 if no SD card plugged. once SD card is plugged, Baro readout is normal.

MATEKSYS avatar Jun 25 '21 08:06 MATEKSYS

Any chance those baros on those boards are SPI connected @MATEKSYS ?

DzikuVx avatar Jun 25 '21 08:06 DzikuVx

All are on I2C bus @DzikuVx , but I noticed the barometer works normal on F765-WING because of different firmware version.

MATEKSYS avatar Jun 25 '21 09:06 MATEKSYS