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

Using custom RX/TX UART pins on nrf51822

Hi,

I have developed an application on an nrf51dk, with SDK12.3 (as it was the latest that I could make it work with). It is running fine on the DK, but when moving to the custom pcb i ran into a few problems, one of them being that the DK uses pins TX=P0.09 and RX=P0.11 and our custom board uses TX=P0.17 and RX=P0.18.

Coincidentally, my code is still monitoring the buttons on the DK board, and because of this, and although the UART is not working on my custom board, while debugging it I was seeing logs for bsp_event_t BSP_EVENT_KEY_0, which is actually pin P0.17 (the pin my board uses for UART RX), so my guess is that UART activity on my custom board is being interpreted as a button event.

So, the next step was to disable the call to bsp_init(), in the hopes I would be disabling button monitoring, but that is still not enough to make the UART work.

Question: what are the steps to allow using custom pins for UART on the nrf51822, under SDK12.3?

Best regards,

Ricardo

Parents Reply Children
No Data
Related