I am trying to scan for sensors on an I2C bus using the nrf54L15 and Zephyr RTOS. I modified the i2c example from here: https://github.com/iFransL/i2c-scanner/tree/main
I ran the code sample on the nRF54L15 DK. Everything works perfectly and I am able to detect devices on the bus. I wanted to run the same code sample on my custom board. But I couldn't get it to work.
- On the nRF54L15DK, I was using i2c port i2c21 and the pins 11 and 12 of GPIO port 1. Everything works perfectly
- On my custom board, I am using i2c port i2c21 and the pins 0 and 1 of GPIO port 2. I am not able to detect any devices on the I2C bus.
Since my custom board has a connector to connect external sensors, I tried connecting the I2C bus on the custom board to the nRF54L15 DK. The DK can detect sensors on my custom board.
It definitely has to do with configuration of the I2C bus on my custom board. How can I troubleshoot this problem? Any help is appreciated.