Hello everyone,
I try to modify SDK 14.2.0 S132 ble_app_template example with Segger Embedded Studio, but I got an error about uart. All uart functions appear to be "undefined".UART ERROR
I checked the sdk configurations in the ble_app_uart example. I also checked uart functions, but I did not see any problems. Do you have any guesses about the error?
Service Init Func.
static void services_init(void)
{
uint32_t err_code;
ble_nus_init_t nus_init;
ble_kls_init_t kls_init;
ble_kls_t m_kls;
memset(&nus_init, 0, sizeof(nus_init));
nus_init.data_handler = nus_data_handler;
err_code = ble_nus_init(&m_nus, &nus_init);
APP_ERROR_CHECK(err_code);
//***************************************************************************
memset(&kls_init, 0, sizeof(kls_init));
kls_init.beacon_write_handler = beacon_write_handler;
err_code = ble_kls_init(&m_kls, &kls_init);
APP_ERROR_CHECK(err_code);
}
UART init func:
static void uart_init(void)
{
uint32_t err_code;
app_uart_comm_params_t const comm_params =
{
.rx_pin_no = RX_PIN_NUMBER,
.tx_pin_no = TX_PIN_NUMBER,
.rts_pin_no = RTS_PIN_NUMBER,
.cts_pin_no = CTS_PIN_NUMBER,
.flow_control = APP_UART_FLOW_CONTROL_DISABLED,
.use_parity = false,
.baud_rate = NRF_UART_BAUDRATE_9600
};
APP_UART_FIFO_INIT(&comm_params,
UART_RX_BUF_SIZE,
UART_TX_BUF_SIZE,
uart_event_handle,
APP_IRQ_PRIORITY_LOWEST,
err_code);
APP_ERROR_CHECK(err_code);
}