Re: Going mad about I2C #i2c #stm32 #nrf51822


Yannis Damigos
 

Hi Roman,

you need to update boards pinmux.c file to add the I2C pins. You could
check olimexino_stm32 board's pinmux file for reference.

Yannis
On Mon, Apr 30, 2018 at 10:36 AM Roman Tataurov <diytronic@...> wrote:

MCU is this
https://github.com/zephyrproject-rtos/zephyr/tree/d6e3f22fddccf4b542cb5ec780440cb629c12290/arch/arm/soc/st_stm32/stm32f1
Using this board
https://github.com/zephyrproject-rtos/zephyr/tree/d6e3f22fddccf4b542cb5ec780440cb629c12290/boards/arm/stm32_min_dev

Seems it completely off i2c devices so added to board dts
&i2c1 {
status = "ok";
};
&i2c2 {
status = "ok";
};
To make it work. Together with bug fixed about DTS
https://github.com/zephyrproject-rtos/zephyr/issues/7248 I have now I2C
device created. So code is work now.
But still no activities on device pins. Checked all the pins with logick
analser and found nothing.

I suspect some GPIO setup required.

Join users@lists.zephyrproject.org to automatically receive all group messages.