#i2c How to configure Atmel samd21 to use sercom3 #i2c


Robin Callender <robin@...>
 

We are trying to understand how to configure sercom3 to allow I2C support.
The I2C device is the adafruit_oled_featherwing.
I believe I have the I2C, SSD1306, framebuffer (cfg), and display.  
Below is the relevant portions of the prj.conf file

Our app builds with these setting, but doesn't seem to conduct I2C traffic.
We going though the SAMD21 datasheet, but it is very confusing.
We don't understand how the pinmux is being driven to set the pad to I2C mode.

Are there any examples showing how to configure I2C for the adafruit_feather_m0_basic board or any other samd21 type board?

CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_HEAP_MEM_POOL_MIN_SIZE=64
 
CONFIG_HAS_DTS_I2C=y
CONFIG_I2C=y
CONFIG_I2C_SAM0=y
CONFIG_I2C_INIT_PRIORITY=60
CONFIG_I2C_0=y
 
CONFIG_DISPLAY=y
CONFIG_SSD1306=y
 
CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_CHARACTER_FRAMEBUFFER_USE_DEFAULT_FONTS=y

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