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

Add UART code into gpiote example but not work

Dear Nordic:

I try to use pca10040 DK and SDK is nRF52_SDK_0.9.2_dbc28c9.

Test nRF52_SDK_0.9.2_dbc28c9\examples\peripheral\UART the function work well on my DK.

I would like to add UART code into another project i pick nRF52_SDK_0.9.2_dbc28c9\examples\peripheral\gpiote for test.

I past the initial UART code into gpiote main section as below:

const app_uart_comm_params_t comm_params = { RX_PIN_NUMBER, TX_PIN_NUMBER, RTS_PIN_NUMBER, CTS_PIN_NUMBER, APP_UART_FLOW_CONTROL_ENABLED, false, UART_BAUDRATE_BAUDRATE_Baud38400 };

APP_UART_FIFO_INIT(&comm_params,
                     UART_RX_BUF_SIZE,
                     UART_TX_BUF_SIZE,
                     uart_error_handle,
                     APP_IRQ_PRIORITY_LOW,
                     err_code);

I modify the UART0_ENABLED to 1

UART0_CONFIG_PSEL_TXD to 5

UART0_CONFIG_PSEL_RXD to 8

UART0_CONFIG_PSEL_CTS to 7

UART0_CONFIG_PSEL_RTS to 6 in nrf_drv_config.h.

I check the accesspoint app but it didn't work(accesspoint didn't recieve any data).

Would i miss any important part of UART function??

Thanks for your great help.

BR, Justin

Related