nRF Connect SDK- NRF5340 Audio DK Python script build problems

I'm using the doc at https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/README.html For the nrf5340_audio DK and I'm having problems building with the Python script in the building in the programming section https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf5340_audio/README.html# 

BUILDING AND PROGRAMMING the AUDIO Example

Development platform used

Windows10

nRFConnect SDK version v2.4.0

nRF Connect for VS Code Extension Pack  v2022.9.6

I'm getting an error 

  • west' is not recognized as an internal or external command

I'm using the toolbox manager bash command and I'm able to get past some of the tools and installed them with PIP . what do I need to do to assure that the tools for West and others in the script are visible?

Parents Reply Children
  • Hi Stephen,

    Apologies for the delay. Once you install west, then your problem of west not found might disappear. Then I understand that you also get errors when executing, in the script. So in order to take a closer look at this, could you attach what error you get when trying to execute the script?

    -Priyanka

  • Thank you for your response  

    I have been able to get way pass the initial build issue that I opened this ticket with. 

    west' is not recognized as an internal or external command

    I'm now using the bash command line tool accessible from the SDK version tab in the Tool Manger.

    I have spent may long days trying to get a build done, so I could move on to programming the 2 devices. I was successful with the build (using different permutations of arguments) but the Programming using the script was not resulting in a proper firmware installation on both devices?

    Now I'm stuck in programming the devices. I cannot program the net core on both devices? Due to readback protection?

    Here are the steps I did.

    1. Copy code to s4
      1. I’m using the v2.4.0 of the SDK , so here is the directory I copied the code from: C:\ncs\v2.4.0\nrf\applications\nrf5340_audio
    2. Change Jason file to add device id for gateway and headset devices.
    3. Go to  the script directory
      1. cd C:/A/s4/tools/buildprog
    4. Turn on both devices and USB cables to PC
    5. 1 BUILD with Debug not Release
      1. python buildprog.py -c both -b debug -d both -m external 
    6. 2 PROGRAM with Debug not release
      1. python buildprog.py -p -c both -b debug -d both

    I have attached the results of the BUILD and the PROGRAMMING in 2 separate word docx documents

    Here is a screenshot of the result of the PROGRAM command 

    Not sure why I'm getting this error? PLEASE ADVISE

    ERROR: The operation attempted is unavailable due to readback protection in
    ERROR: your device. Please use --recover to unlock the device.
    NOTE: For additional output, try running again with logging enabled (--log).

    the arguments --recover and --log DO NOT work in the python script? PLEASE ADVISE

    I am stuck now on this and need your help with some direction on what I'm doing wrong?

    s4 build.docxs4 program.docx

  • Hi Stephen,

    Please take a look at the Building and Programming using script documentation. There it is specified how to recover for readback protection.

    -Priyanka

  • Hi

    i’m sorry,  but I have used this document for days now. I have tried documenting my steps and tried the recover argument and it does not work as specified. 

    Can you be more specific with giving me the correct command line to recover Please…

    again, I have found the document to have errors with the recover argument .

    Regards Steve 

  • Hi Stephen,

    In the link I have mentioned in the previous comment, it highlights to this:

    Have you tried this?

    -Priyanka

Related