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
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
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
Hi Swathy,
I have been able to see the UART debug log from my custom board. The modification method of the pin control is correct.
The solution is to execute the following command to reset the board after flashing the custom board.
nrfjprog -r
Thank you for your help.
Best Regards,
Kevin
Hi Kevin,
Sorry that the link was not available.. Glad to know that you've got the issue resolved..
Regards,
Swathy