NCS v2.2.0 - UART Logging Backend Pin Configuration on Custom Board

Hi,

I need to use P0.24 for UART TX in my custom board.

In NCS v2.2.0, I don't know how to change this configuration to P0.24 for my custom board.

Does anyone know how to configure?

Thanks!

Best Regards,

Kevin

Parents
  • Hello,

    Please take a look at this ticket:  (Missing Ticket) 

    Best Regards,

    Swathy

  • Hi Swathy,

    The ticket has disappeared.

    Can you please reply again?

    To give you a better understanding of my problem, please see the description below.

    The current situation is to use the Central HIDS example from NCS v2.2.0 in a custom
    board, and the UART console of the nrf52840 DK for Logging is TX -> P0.06, RX -> P0.08, and the custom board is TX -> P0.24, RX -> P0.22.

    In order to change pin control, I refer to the Pin Control document to modify these pins number for requirement and flash the firmware to the custom board, but the UART console does not print anything. I am not sure if there's something I'm missing or which configuration was not correct to cause this problem.

    nrf52840dk_nrf52840-pinctrl.dtsi

    uart0_default: uart0_default {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 6)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>;
    	};
    	group2 {
    		psels = <NRF_PSEL(UART_RX, 0, 8)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		bias-pull-up;
    	};
    };
    
    uart0_sleep: uart0_sleep {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 6)>,
    			<NRF_PSEL(UART_RX, 0, 8)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		low-power-enable;
    	};
    };

    costom_board-pinctrl.dtsi

    uart0_default: uart0_default {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 24)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>;
    	};
    	group2 {
    		psels = <NRF_PSEL(UART_RX, 0, 22)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		bias-pull-up;
    	};
    };
    
    uart0_sleep: uart0_sleep {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 24)>,
    			<NRF_PSEL(UART_RX, 0, 22)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		low-power-enable;
    	};
    };

    Could you tell me where the problem is or what information can be referred to, thank you very much.

    Best Regards,

    Kevin

Reply
  • Hi Swathy,

    The ticket has disappeared.

    Can you please reply again?

    To give you a better understanding of my problem, please see the description below.

    The current situation is to use the Central HIDS example from NCS v2.2.0 in a custom
    board, and the UART console of the nrf52840 DK for Logging is TX -> P0.06, RX -> P0.08, and the custom board is TX -> P0.24, RX -> P0.22.

    In order to change pin control, I refer to the Pin Control document to modify these pins number for requirement and flash the firmware to the custom board, but the UART console does not print anything. I am not sure if there's something I'm missing or which configuration was not correct to cause this problem.

    nrf52840dk_nrf52840-pinctrl.dtsi

    uart0_default: uart0_default {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 6)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>;
    	};
    	group2 {
    		psels = <NRF_PSEL(UART_RX, 0, 8)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		bias-pull-up;
    	};
    };
    
    uart0_sleep: uart0_sleep {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 6)>,
    			<NRF_PSEL(UART_RX, 0, 8)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		low-power-enable;
    	};
    };

    costom_board-pinctrl.dtsi

    uart0_default: uart0_default {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 24)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>;
    	};
    	group2 {
    		psels = <NRF_PSEL(UART_RX, 0, 22)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		bias-pull-up;
    	};
    };
    
    uart0_sleep: uart0_sleep {
    	group1 {
    		psels = <NRF_PSEL(UART_TX, 0, 24)>,
    			<NRF_PSEL(UART_RX, 0, 22)>,
    			<NRF_PSEL(UART_RTS, 0, 5)>,
    			<NRF_PSEL(UART_CTS, 0, 7)>;
    		low-power-enable;
    	};
    };

    Could you tell me where the problem is or what information can be referred to, thank you very much.

    Best Regards,

    Kevin

Children
No Data
Related