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

thread_cli_ftd_uart_pca10100 example: move UART port to different pins

I want to move the uart communication port from default pins to

#define RX_PIN_NUMBER 33
#define TX_PIN_NUMBER 34
#define CTS_PIN_NUMBER 35
#define RTS_PIN_NUMBER 36

I changed the defines in pca10100.h

uart_pca10100 example works fine.

thread_cli_ftd_uart_pca10100 example doesn't change as if pca10100.h had old settings

#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5

Probably thread_cli_ftd_uart_pca10100 doesn't use pca10100.h, is it ?

How can I set a different pins set for UART?

Best Regards

Roberto Cerati

Parents Reply
  • Hi Roberto,

    I found another better solution. If you switch to NCS for your development, this will become much easier. For the NCS openthread CLI sample. You only need to change ncs\nrf\samples\openthread\cli\boards\nrf52833dk_nrf52833.overlay to the following settings:

    &uart0 {
    	status = "okay";
    	rx-pin = <33>;
    	tx-pin = <34>;
    	cts-pin = <35>;
    	rts-pin = <36>;
    	hw-flow-control;
    };
    
    &uart1 {
    	status = "disabled";
    	current-speed = <115200>;
    	rx-pin = <33>;
    	tx-pin = <34>;
    };

    Then it should work as expected, I have verified on my nRF52840DK, it works well. Since the development on nRF52 SDK will stop, and NCS will become the next generation development platform, so I strongly suggest you move to NCS now.

    Best regards,

    Charlie

Children
Related