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

Softdevice not working

Hello I'm a beginner using NRF51882, I do not have enough money to buy NDK51 Development or NRF Dongle, the solution I changed STLINK STM32 to JLINK by following tutorial on youtube www.youtube.com/watch and Development KIT BLE400 From waveshare, i tried all instances of program/example codes can not work except GPIO for example LED Blink or UART Communication, btw i'm using KEIL, -The question is whether to flashing softdevice must use JLINK Original from SEGGER? -Or should I use softdevice with certain version?

I hope friends can help, Thanks

  • I hope you see that $40 for nRF5x DK would solve all your troubles but anyway: flashing Soft Device has nothing to do with flasher. Just make sure you either are able to flash SD and app separately (meaning you can sector erase flash only where needed before flashing particular HEX) or simply merge them into one and flash to completely erased chip (that's quite easy and fail safe method).

    Your question about which SD version you should use worries me more: your application binary is more or less tight to particular SD version during compile time because you use corresponding API and set NVM (ROM) + RAM limits accordingly. So it you don't know which version to flash it's very likely that you are using wrong one and that simply makes you app not working. Please do step back and make sure which app binary (HEX) is using SD and what exact "flavor" (S110 vs. S120 vs. 130) and version you need. The everything should work well (assuming your application is written with your PCB/chip variant in mind - memory limits, HF/LF clock sources, LDO/DCDC convertor etc.)

  • Okay well, i'm ordering nrf51DK and nrf51 USB Dongle to singapure mouser, but still not coming, i'm from indonesia, If when nrf51882 first turned on can be directly detected belutooth id or device name?, can you give example of bluetooth pairing code with smartphone, or you can give me information about softdevice version will be use,

    Thanks ,,

  • Dear Usman, firstly everyone on this forum would recommend going with nRF52 for any new design. However if you have strong reason to stay with nRF51 then you can certainly do it. Then to your questions:

    1. "Are nRF51 chips on these Dev Kits pre-loaded with some BLE enabled FW so you could connect to it directly after unboxing?" - I don't think so.
    2. "Can you give me examples of xxx..." - You can download them and study freely in Nordic nRF5 SDK from dedicated web site and read description of all the bits and pieces on their Infocenter. The same applies to the Soft Device variants.

    Note that nRF5 SDk supports nRF51 chips only till release v12.3.0.

  • I would actually strongly recommend to go through all tutorials on this page + Getting Started Guide on Infocenter. If there will be any further questions please post separate question with description of your environment, what you are doing, what is your goal, what you expect and what you see etc.

  • Hi Usman.
    Like endnode stated in the above comments, I would recommend that you take a look at the tutorials here on Devzone.
    As you are using the nRF51 DK, I recommend that you use the SDK 12.3.0, as that is the latest SDK that supports the nRF51 DK (PCA10028). If you choose the SDK 12.3.0 together with the nRF51DK, then you should use the S130 v2.0.1 Softdevice.
    You can read more about the nRF51 in the infocenter, and in the product specification. If you don't know what SDK and Softdevice versions you should use with your board, you can take a look at the compatibility matrix.
    When you recieve your board, my guess is that it will not be able to connect directly out of the box. I suggest you try to use one of the BLE periperal examples in the SDK to test it, e.i ble_app_uart, ble_app_hrs example.

Related