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

Possible bug in SDK14 - TWIM - nRF52840PDK

Hello,

I was having some trouble communicating with another slave device thru TWI, I was not receiving his ACKs. So I decided to try to turn off internal pull ups following instructions in this other thread.

It did not work and both pins (disconnected from everything else) were still showing VDD after TWI initialization.

I tried with another pair of pins (P0.03 and P0.04) and it worked, but it does not work at my initial pins (P1.07 and P1.08) yet.

I am using this API to select pins: NRF_GPIO_PIN_MAP(1, 8).

Conclusion: I believe there is a bug somewhere... maybe related to NRF_GPIO_PIN_MAP() or passing this as argument in this sentence NRF_GPIO->PIN_CNF[SDA_PIN] or something related with the TWI driver...

As the tittle states, this is in SDK14.0 with the nRF52840PDK and trying to use TWIM in pins 1.07 and 1.08 desabling pullups.

Can anyone reproduce it or confirm it? Any fix or workaround? Let me know if any more info is needed.

Thank you!

Related