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

Not able to scan TWI sensors when pins are changed

Hello,

I am using nRF52832, SDK_15.3.0, S132 SoftDevice and Segger for flashing the image.

I am using "twi_scanner" example code on Development kit. I connected HDC2010 sensor and I got 0x40 as address.

Since "Production specification" says any GPIO can be used, I just changed settings as below so that SCL is on P0.21 and SDA is on P0.22.

#define ARDUINO_SCL_PIN 21//27 // SCL signal pin
#define ARDUINO_SDA_PIN 22//26 // SDA signal pin

With this changes, never code executes and hangs in nrf_twim_event_check(). Any reason behind this ? Do I need to configure any other settings ?

Thanks & Regards

Vishnu Beema

Related