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

hi, i want to advertise my nrf52840 device through air. i am having nrf connect app in my apple mobile. i want to read the values of this nrf52840 dk.

somebody help to resolve this problem

  • really i am having lot of trouble with my dk. except blinky example no other examples from sdk 14.0 is working. As per starting guide i have programmed my softdevice to my dk using nRF go studio. but its not working. for example i have used ble_app_uart example. it is also not working. i dont know what is the problem. i had downloaded termite app to my pc and having nrf tool box app in android. really i had stuck in this dk. please help me to over come this.

  • In sdk14.1 if compile a program i am getting unexpected errors so i am using sdk 14.0

    compiling ble_advdata.c...
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(716): error:  #20: identifier "ble_advertising_t" is undefined
          static 
    ool whitelist_has_entries(ble_advertising_t * const p_advertising)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(740): error:  #20: identifier "ble_adv_mode_t" is undefined
      static ble_adv_mode_t adv_mode_next_get(ble_adv_mode_t adv_mode)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(740): error:  #20: identifier "ble_adv_mode_t" is undefined
      static ble_adv_mode_t adv_mode_next_get(ble_adv_mode_t adv_mode)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(742): error:  #20: identifier "ble_adv_mode_t" is undefined
          return (ble_adv_mode_t)((adv_mode + 1) % BLE_ADV_MODES);
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(750): error:  #20: identifier "ble_advertising_t" is undefined
      static void on_connected(ble_advertising_t * const p_advertising, ble_evt_t const * p_ble_evt)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(764): error:  #20: identifier "ble_advertising_t" is undefined
      static void on_disconnected(ble_advertising_t * const p_advertising, ble_evt_t const * p_ble_evt)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(773): warning:  #223-D: function "ble_advertising_start" declared implicitly
             ret = ble_advertising_start(p_advertising, BLE_ADV_MODE_DIRECTED);
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(773): error:  #20: identifier "BLE_ADV_MODE_DIRECTED" is undefined
             ret = ble_advertising_start(p_advertising, BLE_ADV_MODE_DIRECTED);
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(787): error:  #20: identifier "ble_advertising_t" is undefined
      static void on_timeout(ble_advertising_t * const p_advertising, ble_evt_t const * p_ble_evt)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(798): warning:  #223-D: function "ble_advertising_start" declared implicitly
          ret = ble_advertising_start(p_advertising, adv_mode_next_get(p_advertising->adv_mode_current));
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(813): warning:  #223-D: function "nrf_fstorage_is_busy" declared implicitly
          return nrf_fstorage_is_busy(NULL);
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(824): error:  #20: identifier "ble_adv_mode_t" is undefined
      static ble_adv_mode_t adv_mode_next_avail_get(ble_advertising_t * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(824): error:  #20: identifier "ble_advertising_t" is undefined
      static ble_adv_mode_t adv_mode_next_avail_get(ble_advertising_t * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(825): error:  #20: identifier "ble_adv_mode_t" is undefined
                                                    ble_adv_mode_t            adv_mode)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(833): error:  #20: identifier "BLE_ADV_MODE_DIRECTED" is undefined
              case BLE_ADV_MODE_DIRECTED:
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(840): error:  #20: identifier "BLE_ADV_MODE_DIRECTED_SLOW" is undefined
              case BLE_ADV_MODE_DIRECTED_SLOW:
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(847): error:  #20: identifier "BLE_ADV_MODE_FAST" is undefined
              case BLE_ADV_MODE_FAST:
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(854): error:  #20: identifier "BLE_ADV_MODE_SLOW" is undefined
              case BLE_ADV_MODE_SLOW:
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(862): error:  #20: identifier "BLE_ADV_MODE_IDLE" is undefined
                  return BLE_ADV_MODE_IDLE;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(874): error:  #20: identifier "ble_advertising_t" is undefined
      static ret_code_t set_adv_mode_directed(ble_advertising_t * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(877): error:  #20: identifier "BLE_ADV_EVT_DIRECTED" is undefined
          p_advertising->adv_evt  = BLE_ADV_EVT_DIRECTED;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(895): error:  #20: identifier "ble_advertising_t" is undefined
      static ret_code_t set_adv_mode_directed_slow(ble_advertising_t * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(898): error:  #20: identifier "BLE_ADV_EVT_DIRECTED_SLOW" is undefined
          p_advertising->adv_evt = BLE_ADV_EVT_DIRECTED_SLOW;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(916): error:  #20: identifier "ble_advertising_t" is undefined
      static ret_code_t set_adv_mode_fast(ble_advertising_t * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(941): error:  #20: identifier "BLE_ADV_EVT_FAST_WHITELIST" is undefined
              p_advertising->adv_evt = BLE_ADV_EVT_FAST_WHITELIST;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(945): error:  #20: identifier "BLE_ADV_EVT_FAST" is undefined
              p_advertising->adv_evt = BLE_ADV_EVT_FAST;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(959): error:  #20: identifier "ble_advertising_t" is undefined
      static ret_code_t set_adv_mode_slow(ble_advertising_t * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(986): error:  #20: identifier "BLE_ADV_EVT_SLOW_WHITELIST" is undefined
              p_advertising->adv_evt = BLE_ADV_EVT_SLOW_WHITELIST;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(990): error:  #20: identifier "BLE_ADV_EVT_SLOW" is undefined
              p_advertising->adv_evt = BLE_ADV_EVT_SLOW;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(997): error:  #20: identifier "ble_advertising_t" is undefined
      void ble_advertising_conn_cfg_tag_set(ble_advertising_t * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(1004): error:  #20: identifier "ble_advertising_t" is undefined
      uint32_t ble_advertising_init(ble_advertising_t            * const p_advertising,
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(1005): error:  #20: identifier "ble_advertising_init_t" is undefined
                                    ble_advertising_init_t const * const p_init)
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c(1014): error:  #20: identifier "BLE_ADV_MODE_IDLE" is undefined
          p_advertising->adv_mode_current               = BLE_ADV_MODE_IDLE;
    ..\..\..\..\..\..\components\ble\common\ble_advdata.c: 3 warnings, 30 errors
    
  • but if i use the same ble_app_uart example in sdk 14.0. the program is compiling with out any error. but there is no output from dk. really i am frustrated. please help me to come out of this jorgen.

  • hi jorgen, thanks for your responses for my questions. i have deleted sdk 14.1 and re installed it. now the ble_app_uart example is working fine. i will check you ble_app_beacon and let you know.

  • Looks like you were missing some header files. Great that you got it working. Please let me know if you have any more issues.

Related