I am developing a new board with STM32H743. It has a built-in INA226 battery monitor, which shares the I2C2 with the barometer.
However, the INA226 never worked. The message shows: PreArm: Battery 1 unhealthy. And the battery voltage is always 0V.
I am sure the parameters are correct:
define HAL_BATTMON_INA2XX_BUS 1
define HAL_BATTMON_INA2XX_ADDR 0
define HAL_BATT_MONITOR_DEFAULT 21
Also:
BARO SPL06 I2C:1:0x76