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

Ble relay example not working on nrf52 DK

Hello,

I have purchased a new nrf52832 DK board for development. I tried to run some examples like ble_app_blinky which are working properly. But when I tried examples such as ble relay example (<InstallFolder>\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay) and ble multirole example (<InstallFolder>\examples\ble_central_and_peripheral\experimental\ble_app_multirole_lesc) then they are not working, means I think they have not even started because I donot see any text appearing on the UART console (115200,N,8,1) such as example started and also my text which I purposely inserted in the main loop to check whether it shows something. But it is not showing anything. So Is it problem with the DK or I am doing something wrong. I am using SDK 15.3

P.S. I am developing an application for locating other nrf52832 devices and if they come closer than 2m, then an led should glow. So I thought since I need to do advertising and scanning simultaneously, I should start with these examples but unfortunately they are not working.

I appreciate your feedback and I look forward to hear back from you.

Regards,

Parents
  • No the leds 1 and 3 both are OFF. Also, when I open nrf connect, it does not show anything when I scan. It has to show nrf relay for the relay example. Also, when I open debug mode in SES, it gets stuck somewhere for both the examples.

  • Yes miss amanda, I have done that. But still the issue remains.

  • I guess you are using Segger, then enable NRF_LOG_BACKEND_RTT_ENABLED as 1 in the sdk_config.h in both examples, clean, rebuild with the debug mode and erase the kit before loading the image.

    //==========================================================
    // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
    //==========================================================
    #ifndef NRF_LOG_BACKEND_RTT_ENABLED
    #define NRF_LOG_BACKEND_RTT_ENABLED 1
    #endif

    Please provide the logs in the Debug Terminal window of Segger. Thanks. 

    The support staff is reduced during the summer holidays, and you may experience delayed answers.

    -Amanda H.

  • Hello,

    I enabled NRF_LOG_BACKEND_RTT_ENABLED as 1, then clean and rebuild the example in debug mode. Then I erased the kit and hit build and debug. The debug window opened and the cursor stopped at the below line of main(), then I pressed Go in debug tab but nothing happened. Also, the debug window was empty. Then I followed the same process again and upon clicking on Go button, the LED1 and LED3 are ON. With a number of trials, I concluded that it is only working in debug mode and not in run mode. Also, debug window does not show anything but I am looking at UART(115200,8,N,1) and everything works.

    I donot understand why both the examples are not working normally as other in run mode. I used SDK 15.3 as well as SDK17 (the latest). Why do I have to debug every time and I wonder what will happen if I program the same code in nrf52832 module(MDBT42Q).

    Well, the nice thing is that it is working and I can start to work on my main project. This is all because of the support of nordic team in a situation where support staff is reduced. Therefore, I appreciate the team for the good work.

    Regards,

Reply
  • Hello,

    I enabled NRF_LOG_BACKEND_RTT_ENABLED as 1, then clean and rebuild the example in debug mode. Then I erased the kit and hit build and debug. The debug window opened and the cursor stopped at the below line of main(), then I pressed Go in debug tab but nothing happened. Also, the debug window was empty. Then I followed the same process again and upon clicking on Go button, the LED1 and LED3 are ON. With a number of trials, I concluded that it is only working in debug mode and not in run mode. Also, debug window does not show anything but I am looking at UART(115200,8,N,1) and everything works.

    I donot understand why both the examples are not working normally as other in run mode. I used SDK 15.3 as well as SDK17 (the latest). Why do I have to debug every time and I wonder what will happen if I program the same code in nrf52832 module(MDBT42Q).

    Well, the nice thing is that it is working and I can start to work on my main project. This is all because of the support of nordic team in a situation where support staff is reduced. Therefore, I appreciate the team for the good work.

    Regards,

Children
No Data
Related