Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Segger SES and nRF5 SDK setting, building and executing examples

Hello, I'm super beginner for ble.

I have a DK board, nRF51-DK, and trying to learn how to use DK board, Segger SES and nRF5 SDK.

board : nRF51-DK

SES : version 7.12a

SDK : 12.3.0

experience : connecting nRF51-DK and PC through USB cable , copy an example hex file to JLINK flash, 

   working well with hex file.

problem : sdk - examples - peripheral - uart folder,  there is a eww file, uart.eww, SES importing project - EWARM project - selecting uart.eww

   imported well, nrf51422_xxac Internal, build - good. additional output format - hex  

   copy result hex from build, not working board.... why?

should I change any project options for SDK and board ? 

Parents
  • Hi. 

    I assume that you are using the ble_app_uart example?

    I suspect that this is happening because you haven't uploaded the softdevice to your DK. The BLE examples require the softdevice to be present.  

    So when you are flashing your device (I suggest using the nRF Programmer application which is part of nRF Connect for desktop) you also need to flash the appropriate SD hex file. 
    There is also a pre-compiled hex file with the SD included available in the SDK. You can find that in the nrf5_sdk/example/ble_peripheral/x_sample/hex. You would have to choose the hex file for PCA10028 (which is the nRF51-DK) and softdevice S130. 

    If you have any further questions, please let me know.

    Br, 
    Joakim

  • Hello Joakim, 

    Thank you for your kind reply. 

    Um.. I tried just a "peripheral", not ble, 

          

    It also need the softdevice with peripheral example ? 

    It doesn't need the softdevice when I tried the example - peripheral - blinky.

  • Correct. You don't need the SD for the peripheral UART example. 

    But you could still test the pre-compiled hex file for the UART example. Just to see that it works. 

    You can find the example documentation here: 
    https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/uart_example.html 

    There is a section describing how to test the UART example.

    Br, 
    Joakim

  • I have read the example document in infocenter.

    It doesn't help anything for me. I know how this example works and checked with the pre-compiled hex file. The pre-compiled hex works well and DK-board returns letters I sent in PC terminal.

    So I want to build, download and check again with the example project in SES.

    Is the example built by SES well ? 

    Same operation with the pre-compiled hex ? 

    SES works well with debug and download ? 

    I want to know above.

    Like I said, I tried to import the example, build and download in SES.

    build - good, download -good, but DK board doesn't work like the pre-compiled hex file.

    I mean I can't understand why DK board doesn't work with my hex file built in SES.

Reply
  • I have read the example document in infocenter.

    It doesn't help anything for me. I know how this example works and checked with the pre-compiled hex file. The pre-compiled hex works well and DK-board returns letters I sent in PC terminal.

    So I want to build, download and check again with the example project in SES.

    Is the example built by SES well ? 

    Same operation with the pre-compiled hex ? 

    SES works well with debug and download ? 

    I want to know above.

    Like I said, I tried to import the example, build and download in SES.

    build - good, download -good, but DK board doesn't work like the pre-compiled hex file.

    I mean I can't understand why DK board doesn't work with my hex file built in SES.

Children