Baro unable to calibrate on Matek F405 Wing V2

Hi, the FC with arduplane firmware 4.6.3 is not able to calibrate barometer? I have tried several other older versions and it’s the same. Inav 9.0.1 firmware is working correctly on Inav configurator though so it’s not a hardware issue. Barometer IC is marked P368 (DPS310 obsolete), but Mission Planner lists it as DPS310 (DPS280 if on older firmware). Inav lists it as SPL06, although changing it to DSP310 in the inav configuration page works too.

Tried all sorts of BARO_ parameters and BRD_DELAY no joy. I looked through the github repo and found the “baro : unable to calibrate” error message to reside in the AP_Baro.cpp file. Could it be this file that’s the culprit? Also the features list text file in ardupilot firmware directory has AP_Baro_SPL06 disabled. Has anyone has the same P368 barometer on this FC with the same problem? Mateksys listed their baro as DPS310 on their website though.

So I removed the SD card (sandisk 32gb class 10) and now it works. Weird.

They are both SPI devices. Sounds like a bad SD card.