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

Help with "NCS BLE tutorial part 1: Custom Service in Peripheral role" tutorial

Hello

I'm learning the nRF5340 using the purchased nRF5340DK. After completion the beginner's tutorial advanced to the Getting Started tutorial on BLE custom service for nRF5340

https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role

The issue I experience with that is that the project fails on compilation in IDE in my_service.h include file:

The project was fully download as a provided ZIP file and used is it is being unzipped with the required structure

Any chance the zipped project content is missing some file or probably some other info is missing in one of the files ?

Will appreciate any asistance

Alex

Parents
  • Well, that was exactly from Nordic project as they go over in that tutorial, did not change anything on my own

    Anyway, thanks a lot for the hint. I did altered that and it turns there are similar issues with 16-bit and 32-bit type declarations used in the files of that tutorial

    Fixed all to your suggested name (along with 16 and 32 respectively) and it works! Thanks a lot!

    Now another thing:

    That tutorial requires separate programming of network core:

    "You also need to build and flash the BLE Controller stack that runs on the network core. Build and flash the sample in <..>\ncs\zephyr\samples\bluetooth\hci_rpmsg."

    I.e. it build the app for appcore (cpuapp), but the network core to be programmed independently  from the above sample project. But in fact, the board starts to transmit immediately upon programming the app core which is weird (as per my understanding). Looks like the project somehow indeed programs also the network core despite of the tutorial required separate manual programming one...

    I'm quite novice to that stuff, perhaps something I have yet to grasp...

  • Hi!

    If the board is transmitting when programming only the app core, the only explanation is that the BLE controller is already flashed to the network core.

    The kit might have come shipped that way, or perhaps you flashed it earlier.

Reply Children
No Data
Related