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

Github led/button example nrf51_ble_app_lbs_master for SDK 8.0.0 not discovered on Master Control Panel

Dear all, after solution of some compilation errors on github nrf51_ble_app_lbs_master for SDK 8.0.0, I tried flash application using nRFgo Studio, it says that application must be programmed without softdevice alone previous programming, OK, programm was flashed without problems but after device didn't appears on Master Control Panel, that means device was not discovered. I'm using following components:

Nordic PCA10028 DK board Nordic PCA10000 Bluetooth dongle Nordic Master Control PAnel Nordic nRFgo Studio Nordic SDK 8.0.0 Keil IDE Lite version Nordic auxiliar tools

can you help?

Thanks and regards. Luis Tenedorio Globaltronic SA

Dear Petter, after a lot of efforts and posts we had concluded that problem was located on my example compilation, as you said something about "10 errors all same type cannot open source input file core_cm0.h, no such file or directory" that forced me delete original startup files and add new CMSIS startup files. Following your last comment please accept attached project file in order to observe something wrong. As you said, I had compiled other examples of SDK 8.0.0 namely blinky and hrs and they work fine! lbe-app-hrs including was advertised on MCPanel, so there are a small "stone" on lbe-app-lbs-master but we will find that. Thanks amd regards Luis nrf51-ble-app-lbs-master_100.rar

Parents
  • I guess you are not using a ULINK since you are using the PCA10028 DK which has a JLINK.

    Your settings should be something like this:

    image description

    Edit 05.11.2015:

    1. Open nRFgo Studio.
    2. Select your nRF51 development board
    3. Click Erase All
    4. Click Program SoftDevice tab
    5. Browse and Program this.
    6. Click Program Application tab
    7. Browse and Program this.

    Is the device advertising?

  • Hello Petter, thanks for help. I noted I can't use step so I restricted debug to breakpoints and Run commands, though we know that there are some issues also when using ble. Let me show you what breakpoints I used on lbe_app_lbs_master example:

    561: ble_stack_Init(); 564: services_init(); 571: advertising_start();

    When starting debug mode the program stops on first main instruction leds_init(), that's normal as we know. Using Run command the program continues to next breakpoint ble_stack_init(), that's normal, using Run command again the program enters on a endless loop, hangs on and is not possible further debug, so I have no possibility to know where is the cause why app don't appears on MC Panel, I'm a little suprised why this is happening on my PCA10028 when much people are telling the example downloaded from Github compiles and runs on their devices but in my case it runs but is not observed on MCPanel. I will try harder discover the problem, so I need some help from forum people.

    Another interesting issue happens when I insert only two breakpoints or no breakpoint on main.c other instructions not ble_stack_init() and enter in debug mode. In this case the debugger stops on first main.c instruction as expected (leds_init()) and never goes from there even entering Run command.

    In concerning question 3 here is the tittle for Elena post "Can't debug LBS example, but yes HRS"

    Do you think that I must use another debug method as trace data or UART? Thanks and regards. Luis Tenedorio

Reply
  • Hello Petter, thanks for help. I noted I can't use step so I restricted debug to breakpoints and Run commands, though we know that there are some issues also when using ble. Let me show you what breakpoints I used on lbe_app_lbs_master example:

    561: ble_stack_Init(); 564: services_init(); 571: advertising_start();

    When starting debug mode the program stops on first main instruction leds_init(), that's normal as we know. Using Run command the program continues to next breakpoint ble_stack_init(), that's normal, using Run command again the program enters on a endless loop, hangs on and is not possible further debug, so I have no possibility to know where is the cause why app don't appears on MC Panel, I'm a little suprised why this is happening on my PCA10028 when much people are telling the example downloaded from Github compiles and runs on their devices but in my case it runs but is not observed on MCPanel. I will try harder discover the problem, so I need some help from forum people.

    Another interesting issue happens when I insert only two breakpoints or no breakpoint on main.c other instructions not ble_stack_init() and enter in debug mode. In this case the debugger stops on first main.c instruction as expected (leds_init()) and never goes from there even entering Run command.

    In concerning question 3 here is the tittle for Elena post "Can't debug LBS example, but yes HRS"

    Do you think that I must use another debug method as trace data or UART? Thanks and regards. Luis Tenedorio

Children
No Data
Related