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!
Search found 6 matches
- 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....
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!
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!
- 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:
and i changes to the:
is that correct? Apparently so, because the error message is not displayed.
Code: Select all
DLIBS =and i changes to the:
Code: Select all
DLIBS = -lmis that correct? Apparently so, because the error message is not displayed.
- 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.
- 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
before lines
in a file rules.mk
need add line
Code: Select all
LDFLAGS += -lmbefore lines
Code: Select all
# Generate dependency information
CFLAGS += -MD -MP -MF .dep/$(@F).d
CPPFLAGS += -MD -MP -MF .dep/$(@F).din a file rules.mk
- 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?
- 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: ...
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: ...