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

ANT and BLE concurrent problem with NRF51422

I want to use ANT and BLE concurrently.

  1. I found that there are no multiprotocol examples in SDK12 for NRF51422 (PCA10028). It only have example for NRF52832 (ble_ant_app_hrm). The softdevice for NRF51422 and NRF51822 are different. It is using S332 softdevice for NRF52832 but S310 softdevice for NRF51822. Do you have any guideline of using NRF51422 S310 with SDK12?

  2. Meanwhile, I also tried using SDK10 that there is a multiprotocol examples using S310 with NRF51422, but we found that there is no uart logging output for debugging, so we add the following codes at the beginning of the main(), but the uart output only with 1 character: "s" (not "start").

app_trace_init(); app_trace_log("start");

We have checked the uart baud rate which is correct.

void app_trace_init(void)
{
    uint32_t err_code = NRF_SUCCESS;
    const app_uart_comm_params_t comm_params =  
    {
        RX_PIN_NUMBER, 
        TX_PIN_NUMBER, 
        RTS_PIN_NUMBER, 
        CTS_PIN_NUMBER, 
        APP_UART_FLOW_CONTROL_DISABLED, 
        false, 
        UART_BAUDRATE_BAUDRATE_Baud115200
    }; 
        
    APP_UART_FIFO_INIT(&comm_params, 
                       UART_RX_BUF_SIZE, 
                       UART_TX_BUF_SIZE, 
                       uart_error_handle, 
                       APP_IRQ_PRIORITY_LOW,
                       err_code);
    UNUSED_VARIABLE(err_code);
} 

Is there any idea to fix this Problem?

Thanks.

  • Hi,

    Unfortunately, support for S310 is not available in SDK12. It should be able to rewrite the example in SDK 12 to use the S310 API, but we don't have any available code for this.

    To get logging to work in SDK 10, you need to do the following:

    • Remove app_uart.c source file from your project.
    • Add app_uart_fifo.c and app_fifo.c source files to your project (found in [SDK_ROOT]\components\libraries\{uart,fifo}).
    • Add path to header file app_fifo.h to your project ([SDK_ROOT]\components\libraries\fifo).

    Best regards,

    Jørgen

Related