Skip to content

MatekF411/Tyro79 - i2c2 works on betaflight but not emuflight #702

@MATH3U5

Description

@MATH3U5

I working on Tyro79FC , is a Eachine STRM32F411ce flight controller. It is full compatible with the MatekF411 target, but SDA and SCL pins are not exposed on the board. I would like to add a BMP280 barometer for altitude hold .According to the datasheet I should be able to use the S5 pad from PB03 as i2c2 SDA; and the S6 pad from PB10 as i2c2 SCL.

I know my wiring and port numbers are correct and get sucess in getting the barometer to working on i2c2 using these pins in betaflight with the stock MatekF411 firmware and remaping the pins using betaflight's resource mapping.

I get sucess in betaflight with this commands, and response all ok in status and sensors output:

betaflight sucess steps for barometer.txt

resource I2C_SCL 2 B10
resource I2C_SDA 2 B03
set baro_i2c_device = 2
set baro_hardware = BMP280
and get baro for confirm

In Emufligh, barometer does not detect any barometer. Even defining barometer to BMP280. i2c speeds no makes any difference.

I tested all versions of Emuflight until the last one and all firmwares until the last, but all giving me the same result, no baro.

Betaflight with status,resource and dump:

[BTFL_cli_M_20210910_231257.txt]
(https://github.com/emuflight/EmuFlight/files/7147058/BTFL_cli_M_20210910_231257.txt)

Emuflight with status,resource,dump and get baro:

[EMUF_cli_20210910_232249.txt]
(https://github.com/emuflight/EmuFlight/files/7147062/EMUF_cli_20210910_232249.txt)

Thanks in advance for any help you can offer.

Also wanted to say thanks to all person was work so hard to make Emuflight. Is incredible how this is so smooth in my quads, movements and maneuvers is executed with class!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions