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

How to Map UARTE to physical pins?

Hello,

I am a newby to the nRF5340 and Zephyr and I am stuck. I would like to know how to map physical pins to a particular UARTE.

I have read in the user manual OPS_v0.6.1 that this can be configured using these registers PSEL.RXD, PSEL.CTS, PSEL.RTS and PSEL.TXD but I am not sure how.

Is there a tutorial or a sample example where this is illustrated?

Thank you.

Parents Reply
  • Hi again, Mohamed.

    It is not explained explicitly in the tutorial, but it does show how the .overlay files are translated into #defines which in turn are used by the drivers(where the registers you mention are set). You can access the registers directly as well, as hinted to by our documentation. However, I recommend using the .overlay files, as mentioned.

    Best of luck,
    Carl Richard

Children
Related