How to configure and connect? No signal on SDA and SCL. Look SaleaLogic. Built example and flashed. But there's nothing.
It actually should work with STM32F103 ?
I tried different options on the Sda and Scl lines or what not. Board Maple Mini + Tiny RTC
i2c chibios161 STM32F1xx-I2C
Moderator: RoccoMarco
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: i2c chibios161 STM32F1xx-I2C
It is supposed to work.
Make sure to configure the pins correctly and look at this article: http://wiki.chibios.org/dokuwiki/doku.p ... e_shooting
Giovanni
Make sure to configure the pins correctly and look at this article: http://wiki.chibios.org/dokuwiki/doku.p ... e_shooting
Giovanni
Re: i2c chibios161 STM32F1xx-I2C
Thanks.
Why in you test / example don't use - like that ?
palSetPadMode(GPIOB, 6, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); /* SCL */
palSetPadMode(GPIOB, 7, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); /* SDA */
it help for me.
Why in you test / example don't use - like that ?
palSetPadMode(GPIOB, 6, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); /* SCL */
palSetPadMode(GPIOB, 7, PAL_MODE_STM32_ALTERNATE_OPENDRAIN); /* SDA */
it help for me.
- Giovanni
- Site Admin
- Posts: 14893
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times