This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Twi configuration for multiple slave devices

Hello,

I'm trying to configure two TWI slave devices on the same TWI bus on my custom board(nRF52832). One slave is RTC, and the other is a biosensor. The TWI configuration for RTC seems to work. So I adopt the similar configuration and switch to corresponding SCL, SDA pins for biosensor, but the initialization of custom board just stuck at bio_twi_init().

I've searched the devzone for relevant issues but still can't find the solution. TWI initialization sample code is as two_twi_slaves_main.c, please ignore whether it can be compiled.

Any suggestion would be great appreciated!

Many Thanks in advance!

Related