Search found 6 matches

by lex
Fri Mar 21, 2014 2:08 pm
Forum: STM32 Support
Topic: i2c driver for STM32F051
Replies: 10
Views: 4824

Re: i2c driver for STM32F051

Great! Thank you for your help. Previously I could not ever find there. Today I somehow does not think.... :lol: :lol:

I must to try the i2c driver, as you advised me in the first post. But I guess it will be up tomorrow. Thank you again!
by lex
Fri Mar 21, 2014 1:55 pm
Forum: STM32 Support
Topic: i2c driver for STM32F051
Replies: 10
Views: 4824

Re: i2c driver for STM32F051

in the Makefile I found this:

Code: Select all

DLIBS =

and i changes to the:

Code: Select all

DLIBS = -lm

is that correct? Apparently so, because the error message is not displayed.
by lex
Fri Mar 21, 2014 1:44 pm
Forum: STM32 Support
Topic: i2c driver for STM32F051
Replies: 10
Views: 4824

Re: i2c driver for STM32F051

Sorry, but I'm a beginner. But after adding the option error message disappeared and the compilation was successful.
by lex
Fri Mar 21, 2014 1:25 pm
Forum: STM32 Support
Topic: i2c driver for STM32F051
Replies: 10
Views: 4824

Re: i2c driver for STM32F051

Adding the pow() function is solved:

need add line

Code: Select all

LDFLAGS  += -lm

before lines

Code: Select all

# Generate dependency information
CFLAGS   += -MD -MP -MF .dep/$(@F).d
CPPFLAGS += -MD -MP -MF .dep/$(@F).d

in a file rules.mk
by lex
Fri Mar 21, 2014 12:18 pm
Forum: STM32 Support
Topic: i2c driver for STM32F051
Replies: 10
Views: 4824

Re: i2c driver for STM32F051

Thank you for quick reply, I'll try it. But now I have another problem: exists in chibios function pow()? If not, is there any replacement?
by lex
Fri Mar 21, 2014 3:37 am
Forum: STM32 Support
Topic: i2c driver for STM32F051
Replies: 10
Views: 4824

i2c driver for STM32F051

Hi,

i need configure i2c driver for STM32F051. I not find i2c example for this MCU. I'm using ChibiOS 2.6.3.

If I use this configuration:

static const I2CConfig i2cfg1 = {
OPMODE_I2C,
400000,
FAST_DUTY_CYCLE_2,
};
so when compiling I get this error:

main.c:56:5: error&#58 ...