multiwii / baseflight

32 bit fork of the MultiWii RC flight controller firmware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I2C error while using I2C1

19504643 opened this issue · comments

I want to port baseflight to another board,the mcu is stm32f103ret6,and I connect mpu6050 hmc5883l ms5611 to its I2C1,I just modified the code
, #define I2C_DEVICE (I2CDEV_1) //board.h
and it would halt at
, while (I2Cx->CR1 & 0x0100) //drv_i2c.c
in FUNCTION
, i2c_er_handler (LINE179)
in drv_i2c.c,but why?

Try using SOFT_I2C, or else be prepared to debug with a scope and by stepping through code.

Pretty sure this was fixed before.

On Fri, Dec 4, 2015 at 5:34 PM, 19504643 notifications@github.com wrote:

Closed #282 #282.


Reply to this email directly or view it on GitHub
#282 (comment).