nRF Connect SDK Tutorial - Part 1 - 2.2.1 Build a BLE example (nRF5340)

Hello everyone,

in the last chapter of 

https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-1-ncs-v1-4-0

its explained to program on different cores of the nRF5340 (network or application). I am using the VS Code nRF extension and lashing the example "peripheral_lbs" is working = my nRF5340DK LED 1 is blinking and on my iphone app nRF Connect Nordic_LBS is visible with the service Nordic LED and Button Service.

Next explanation in sdk-tutorial part 1 (link above)

Both files 

1. 

C:\nordicsemi\myapps\peripheral_lbs\build\zephyr\merged.hex

2.

C:\nordicsemi\myapps\peripheral_lbs\build\hci_rpmsg\zephyr\merged_CPUNET.hex

can be found in my project directory, but I dont know how to program the .hex files to different cores??

How is this be done in VS Code?

The "Open command promt" way gets the error 

So at the end I cant find the "Nordic_Blinky" advertising device through my mobile phone.

Is the network core empty in the screenshot?

Many thanks in advance for your help!!

Christoph

Parents
  • Hi Christoph,

    You do not need to programmed each core separately in VS Code, as the child image is also programmed when you use the 'Flash' action in the extension.

    On the command line you can use west or nrfjprog to program the two cores separately. How to do this is explained in our documentation here: Working with nRF5340 DK » Programming using the command line.

    The "Open command promt" way gets the error 

    The error in your picture is because you do not execute the cd command before the nrfjprog command, and there is a missing space between the cd command and nrfjprog:

    cd nrf\samples...\hci_rpmsg\zephyrnrfjprog -f NRF53 ...

    Best regards,

    Marte

  • Hello Marte,

    thanks for your reply! Thank you too for last help, I verified answer and afterwards I couldnt thabk for your help because ticket was closed.

    So when I VS Code is programming both cores why I can not see the "Nordic_Blinky" through my mobile phone ?

    When I toggle through the root for cd nrf\sample... ther is no build_nrf5340dk_nrf5340_cpuapp ,in both the SDK or my myapps folder which was created through VS Code.

    Can this be done only using VS Code ?

    Thank you and best regards,

    Christoph

Reply
  • Hello Marte,

    thanks for your reply! Thank you too for last help, I verified answer and afterwards I couldnt thabk for your help because ticket was closed.

    So when I VS Code is programming both cores why I can not see the "Nordic_Blinky" through my mobile phone ?

    When I toggle through the root for cd nrf\sample... ther is no build_nrf5340dk_nrf5340_cpuapp ,in both the SDK or my myapps folder which was created through VS Code.

    Can this be done only using VS Code ?

    Thank you and best regards,

    Christoph

Children
  • Hi Christoph,

    I am happy to help! Tickets get closed automatically after they are marked as having a verified answer, which is why your previous ticket was closed and you were unable to reply.

    I am not sure if I understand what your issue is currently.

    ChrtistophAT said:
    So when I VS Code is programming both cores why I can not see the "Nordic_Blinky" through my mobile phone ?

    You originally wrote that you were able to see Nordic_LBS in the app, and see the LED and button service, but now you are not able to anymore? What was done differently between the case where you were able to see it in your phone and the one where you were not? Have you tried to look at the log to see if it seems like the application was programmed successfully? You can see how to get logging output from nRF5340 DK here: Working with nRF5340 DK » Getting logging output.

    The issue can also be caused by cache, as iOS caches services and devices. Try clearing the Bluetooth cache on your phone and see if that fixes the issue. You can clear cache on iOS by either rebooting the phone or turning flight mode on and off again, in order to restart Bluetooth.

    ChrtistophAT said:
    When I toggle through the root for cd nrf\sample... ther is no build_nrf5340dk_nrf5340_cpuapp ,in both the SDK or my myapps folder which was created through VS Code.

    Are you referring to what I wrote in my previous reply? I only used ... as a placeholder for the rest of the path in the command in your picture, as the important part to explain was that the cd command and nrfjprog command overlapped, and they must be executed separately. First you use cd to get to the location where the file you want to program is located, and then you can use nrfjprog to program the file.

    Best regards,

    Marte

  • Sorry but sometimes the Reply button for replying to your last reply isnt visible.

Related