i2c chibios161 STM32F1xx-I2C

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
straga
Posts: 3
Joined: Wed Feb 24, 2016 11:29 am

i2c chibios161 STM32F1xx-I2C

Post by straga »

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
User avatar
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

Post by Giovanni »

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
straga
Posts: 3
Joined: Wed Feb 24, 2016 11:29 am

Re: i2c chibios161 STM32F1xx-I2C

Post by straga »

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.
User avatar
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

Post by Giovanni »

Some pins are programmed in board files (board.h).

Giovanni
straga
Posts: 3
Joined: Wed Feb 24, 2016 11:29 am

Re: i2c chibios161 STM32F1xx-I2C

Post by straga »

Ok. Thanks again.
Post Reply