Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

TWIM transfer doesn't work when using trace data pin P0.18, also cannot use it as a common GPIO pin.

Hi,

I have a project which requires using trace data pin P0.18 as an SDA for the sensor, but cannot send

anything because it doesn't generate anything and the program stops at the first TWIM transfer.

I've tried to use it as a GPIO pin but that didn't work either.

My question is:

How to configure the pin P0.18 for it to be usable as a common GPIO without the trace data and SWO functionality?

(I'm using nrf52832 and Nordic SDK 15.2)


I have configured ENABLE_TRACE and ENABLE_SWO as 0, but to no avail (I still get nothing on the logic analyzer).

I have seen the previous questions on:

https://devzone.nordicsemi.com/f/nordic-q-a/59294/i2c-fails-to-work-when-p0_15-p0_16-is-configured

https://devzone.nordicsemi.com/f/nordic-q-a/46110/configure-p0-14-and-p0-15-as-scl-and-sda/181826#181826

but couldn't make it work.

Do you have any suggestions/examples of the solutions for the aforementioned problem?

Any help would be appreciated.

Petar

Related