Example code

I have been forced to upgrade to the nRF54L15 from the nRF52840 DK.  The example code in the SDK  for the nRF52840 the 'ble-peripheral' had example code for 'ble_app_uart' which was perfect for me.  All I need to do is receive a string of characters from a smart phone, and then do what I need to do with it. 

In the 'ble_app_uart' example there is a routine called 'nus_data_handler'  which had an array called 'ble_data[]'  which received the string of data from the phone.

I have just installed the SDK for the nRF52840 Development Kit and I can not find anything comparable with the 'ble_app_uart' for nRF52840.

It must be in there somewhere, but I have looked, but can not find it.  I am hoping that you can point me in the right direction.

Cheers,

Brian Fleming

Parents
  • Hi

    I assume you had Python already installed when installing the nRF Connect SDK and VS Code extension, correct? 

    On Windows, this usually fails when another Python on your PATH interferes, or when the toolchain’s Python is not visible. Nordic recommends ensuring that the toolchain’s Python is the one CMake picks up.[Build fail CLI][VS Code Python env]

    The first thing to try is that if you haven't, close all VS Code tabs in order to refresh/update all instances of it on your computer, then reopen it again. Next make sure you open the SDK folder so you have the workspace/environment set up correctly. I usually open up the folder of NCS I'm using (C:\ncs\v3.2.0). Then, go to the nRF Connect VS Code extension tab and "Manage SDKs" and "Manage Toolchains" to make sure you have the correct SDK and toolchains try building the project you want. Please let me know if you still see the same error messages.

    Best regards,

    Simon

  • Hello,

    I seem to have resolved the python issue although I do not know how.

    [cmake] -- Found Python3: C:/Users/Brian/AppData/Local/Programs/Python/Python313/python.exe (found suitable version "3.13.2", minimum required is "3.10") found
    However, here is the next issue.  
    [cmake] CMake Error at C:/ncs/v3.1.1/zephyr/cmake/modules/extensions.cmake:3511 (message):
    [cmake]   BOARD is not being defined on the CMake command-line, in the environment or
    [cmake]   by the app.
    I have tried everything within the Visual Studio environment that I could think of  and have done many searches on the web but I have not found anything which makes sense for me.
    Sorry for my lengthy delay in replying, but I have many other work responsibilities.
    Cheers.
  • Hi Brian

    Are you using the VS Code extension to build the project? What board are you building the application for here? Start with the nRF54L15 DK and upload the full build log here. if you see the same issue. Also, make sure you have the same version of the nRF Connect SDK as the toolchain when you build. 

    Here's how the build page should look if you're building the project with the VS Code extension: 

    Best regards,

    Simon

Reply
  • Hi Brian

    Are you using the VS Code extension to build the project? What board are you building the application for here? Start with the nRF54L15 DK and upload the full build log here. if you see the same issue. Also, make sure you have the same version of the nRF Connect SDK as the toolchain when you build. 

    Here's how the build page should look if you're building the project with the VS Code extension: 

    Best regards,

    Simon

Children
  • Hello, 

    I am using the nRF54L15 Development Kit

    I think I am using the VS Code extension as I can see the same screen as per the image you have attached with the same parameters.

    I have saved a screen grab as a file and all parameters are the same as per your image.  I have tried to attached the image file, however I can not attach the file to this message. I have tried Insert\image/video/file\File/URL   I enter the complete path C:\Users\Brian\OneDrive\Desktop\IMAGES  followed by the full file name and nothing can be uploaded.  

    Cheers,

    Brian Fleming

Related