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

Example 【ble_app_uart】 import head file from 【proprietary_rf】

Hi,

SDK:nRF5_SDK_15.0.0_a53641a

Chip:nRF52810

Example BLE:ble_app_uart(pca10040e \ s112)

Example 2.4G:esb_prx(pca10040)

I am working on BLE and 2.4G integration projects.(I also read the documentation for Timeslot.)

Open example ble_app_uart , then add 2.4G related documents

Want to confirm that I still need to add additional files?

It seems that only need to extract these files in the sample proprietary_rf to add

This error seems to be related to the transmission speed?

A little urgent, please, thank you

Parents
  • Hi,

    Please change nrf_esb_bitrate_t so it looks like this:

    /**@brief Enhanced ShockBurst bitrate modes. */
    typedef enum {
        NRF_ESB_BITRATE_2MBPS     = RADIO_MODE_MODE_Nrf_2Mbit,      /**< 2 Mb radio mode.                                                */
        NRF_ESB_BITRATE_1MBPS     = RADIO_MODE_MODE_Nrf_1Mbit,      /**< 1 Mb radio mode.                                                */
    #if !(defined(NRF52840_XXAA) || defined(NRF52810_XXAA))
        NRF_ESB_BITRATE_250KBPS   = RADIO_MODE_MODE_Nrf_250Kbit,    /**< 250 Kb radio mode.                                              */
    #endif //NRF52840_XXAA
        NRF_ESB_BITRATE_1MBPS_BLE = RADIO_MODE_MODE_Ble_1Mbit,      /**< 1 Mb radio mode using @e Bluetooth low energy radio parameters. */
    #if defined(NRF52_SERIES)
        NRF_ESB_BITRATE_2MBPS_BLE = 4                               /**< 2 Mb radio mode using @e Bluetooth low energy radio parameters. */
    #endif
    } nrf_esb_bitrate_t;

    You might also need to change the SWI instance used by ESB. Try SWI3 if you run into any issues with that.

    Snippet:

    #define     ESB_EVT_IRQ                         SWI3_IRQn           //!< The ESB event IRQ number when running on an nRF5 device.
    #define     ESB_EVT_IRQHandler                  SWI3_IRQHandler     //!< The handler for @ref ESB_EVT_IRQ when running on an nRF5 device.

    Note: We are adding full ESB support for nRF52810 in the next version of the SDK.

  • Thank you for answer,

    Need to change to the number swi3, is it possible to conflict with BLE?

    The two red boxes on the left indicate the files I added.

    Should only need to add these two parts?

    Please forgive me for lack of knowledge and experience, I must make samples as soon as possible.

Reply Children
Related