Custom board I2C not working

I've designed a custom PCB for nrf52832. 

The chip is getting programmed for GPIO and working fine. But when I'm programming it for I2C it is not working. The chip is getting programmed but no results.

I also cannot view the results on serial monitor. I'm programming it using nrf52DK SWD interface.

Parents
  • Might be a stuck bus or hw issue. Check for stuck SDA, SCL lines using a digital analyzer or oscilloscope. could also be a device tree configuration and initialization issue. check those and that you are properly writing bits to the bus. i would recommend tracing configuration steps, creating a stand alone i2c test branch for code, and using some test equipment to physically see if the i2c is outputting what you are telling it to output. Not an expert but these are my debugging experiences

Reply
  • Might be a stuck bus or hw issue. Check for stuck SDA, SCL lines using a digital analyzer or oscilloscope. could also be a device tree configuration and initialization issue. check those and that you are properly writing bits to the bus. i would recommend tracing configuration steps, creating a stand alone i2c test branch for code, and using some test equipment to physically see if the i2c is outputting what you are telling it to output. Not an expert but these are my debugging experiences

Children
Related