This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

BLE Advertising, a beginner's tutorial

Hello everyone,

Lately I have been struggling while trying to run "BLE Advertising, a beginner's tutorial". My hardware consists of NRF51822 and PCA1000 dongle. I use SDK_11.0.0 and the example provided at github github.com/.../nrf51-ble-tutorial-advertising . I copy the folder "nrf5x-ble-tutorial-advertising" to "your_SDK_folder\examples\ble_peripheral". main.c file is found in the folder "your_SDK_folder\examples\ble_peripheral\nrf5x-ble-tutorial-advertising" like in tutorial said.

After that I change memory options to this: image description

Keil compiles it without errors or warnings: image description

Lastly, Master Control Panel can not find my "HelloWorld" device: image description

Moreover, I have tried the modified BLE_UART application of my colegue 's with the same tools and the device was found by the Master Conrol Panel software.

Any ideas what may be causing the problem? I would appreciate your help.

...EDITED:

While debugging the code stucks at this point: image description image description

  • Hi,

    I assume that you remembered to program the softdevice since you get the uart example to work? Have you tried debugging like this? Do you get any errors?

  • First of all, thank you for helping me. You are right, I did programmed the softdevice into the board, just forgot to mention that. In addition to this, I have checked "options for target" they were same as in the link you provided. Moreover, I tried to debugg the code. The code ends in while loop as shown in the link (defined in app_error.c). So, to make it clear for me I should print the error? I believe that it would be the easiest way "set a break in keil debugger and break at the line error is generated and find out what error code is". I know it might sound too simple, but how and where should I put a breakpoint to get that information?

  • I would like to add more to this topic. I have also tried to run "BLE Services, a beginner's tutorial". Unfortunately, I was not lucky. The same problem occured once again. Code stopps at the app_error.c while loop and Master Control Panel is unaible to detect my board.

  • If you can read out the values shown in the image below, that should give us a clue. image description

  • Error code looks like this: link text I get this error in BLE service tutorial link text also, I tried to comment the while loop where code stucks, then code ends up in here: link text

Related