unable to use ble_uart using nrf52810

Hi,

I'm using app_ble_uart  example using nrf52810 for nrf52810 UART RX &  TX  pins are (P0.15 - P0.14)  while configuring using i got a problem with RX transmission ,when i changed to  Rx pin as p0.15  the nrf52810 module is not working.

  • Hi,

    I have some questions:

    • In what way does it not work?
    • Can you explain in detail how you changed the pin, perhaps by uploading a diff of your code compared to the SDK example?
    • Also, which module do you have and how do you use it (anything particular with P0.15, for instance)?
    • Which SDK are you using)?
    1. I'm using ble_app_uart example  using NRF52810  custom board  and nRF5_SDK_17.1.0_ddde560. IN SDK  config  i just changed the RX and TX pins  to (P0.15 & P0.14)   after  upload the coded to NRF52810 custom board  the custom board not working like its not  going to "powered on" .

    If i just change only (TX pin to  P0.14)  NRF52810 module  is going to powered on its advertising the ble and it only transmitting the data .when if i change  RX pin  also even the NRF52810 module not going to powered on .

    Here i changed the TX and RX pin in my code

    static void uart_init(void)
    {
        uint32_t                     err_code;
        app_uart_comm_params_t const comm_params =
        {
            .rx_pin_no    = 15,
            .tx_pin_no    = 14,
            .rts_pin_no   = RTS_PIN_NUMBER,
            .cts_pin_no   = CTS_PIN_NUMBER,
            .flow_control = APP_UART_FLOW_CONTROL_DISABLED,
            .use_parity   = false,
    #if defined (UART_PRESENT)
            .baud_rate    = NRF_UART_BAUDRATE_115200
    #else
            .baud_rate    = NRF_UARTE_BAUDRATE_115200
    #endif
        };
    
        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);
    }

  • Hi,

    There is nothing special about P0.14 and P0.15, so we must look further to understand what is happening. Tw0 important questions:

    1. Do you use any of the two pins for anything else in your firmware?
    2. How are this pins connected physically on your HW?
      1. For instance, by setting P0.15 to Tx that will be default high as that is the idle state of UART pins. Could that cause problems with your HW?
    _bhanu said:
    not working like its not  going to "powered on" .

    What exactly do you mean by this? Have you debugged to see which state the device is in?

  • HI,

    Do you use any of the two pins for anything else in your firmware?

    I didn't use those pins for any other purpose i only only used for TX & RX in my firmware.

    How are this pins connected physically on your HW?

    i connected TX pin of HW connected to  FTDI to see weather the communication happens or not.

    What exactly do you mean by this? Have you debugged to see which state the device is in?

    when i mention RX pin as P0.15  the ble was not advertising and moreover  which data i given to transmit  is also not doing. this problem I'm facing only  when i mention RX pin as P0.15   

  • _bhanu said:
    i connected TX pin of HW connected to  FTDI to see weather the communication happens or not.

    Can you share your schematics so that we can see if those pins are also connected to something else?

    _bhanu said:
    when i mention RX pin as P0.15  the ble was not advertising and moreover  which data i given to transmit  is also not doing. this problem I'm facing only  when i mention RX pin as P0.15   

    That is quite high-level, then. Have you tried to debug? What does that tell you? Are any APP_ERROR_CHECK's hit or something else?

Related