Problem configuring TWI (I2C) interface

Hello,

I'm trying to configure the TWIM for a nRF52832 microcontroller. I have created the following *overlay file:

I have the following error in line "e" ('twis_device1:nRF52832@40004000'):

And after a build I get the following error:

Could you please explain me what I'm not configuring correctly and how to solve it? Thanks for your attention.

Parents
  • Hi,

    In an i2c device node, the reg property and address after the node name should be the i2c address, not the memory address of the bus.
    So both 40004000 should be 28.

  • Hello,

    I have replaced the address and I still have the error:

    Do I have to modify '/soc/i2c@40004000/nRF52832@28/'?

  • Which version of the nRF Connect SDK are you using?

  • At the moment I am not able to reproduce the error you are seeing.

    Could you try adding this to the overlay?

    If that does not work, could you please show me the prj.conf file? Do you have CONFIG_I2C=y ?

    Which board are you building for, and are you able to reproduce this error on the hello_world sample?

  • I still have the same error. Below the prj.conf file:

    I'm building the project for an nRF52832.

Reply
  • I still have the same error. Below the prj.conf file:

    I'm building the project for an nRF52832.

Children
  • Hello,

    I come back to this subject as I still have problems to configure the I2C interface. Is there any parameter I'm missing?