Unable to flash nrf5340 audio dk using Buildprog script

I am working with the unicast samples where one board is configured as a server and the other as client. Initially i had trouble installing the SDK, but it seems to be working properly now.

I recently came up with this issue where the buildprog wont flash the firmware in the boards. Upon executing the script, it would build the project and then finish the execution while it should start flashing both the4 boards. 

This was working 3 days back, the only thing that might have affected is some vscode update that was scheduled which requested a restart for the IDE. I am pasting the log that gets printed out.

python tools/buildprog/buildprog.py -c both -b debug -d both -p  46s  01:49:17 AM
+------------+----------+---------+--------------+---------------------+---------------------+
| snr | snr conn | device | only reboot | core app programmed | core net programmed |
+------------+----------+---------+--------------+---------------------+---------------------+
| 1050xxxxxx | True | headset | Not selected | Selected | Selected |
| 1050xxxxxx | True | gateway | Not selected | Selected | Selected |
| 1000 | False | headset | Not selected | Selected | Selected |
+------------+----------+---------+--------------+---------------------+---------------------+
Invoking build step
Net core uses precompiled hex or child image
Run: west build /Users/nrfproject -b nrf5340_audio_dk/nrf5340/cpuapp -d /Users/nrfproject/build/dev_headset/build_debug
[0/4] Performing build step for 'hci_ipc_subimage'
ninja: no work to do.
[3/3] Completed 'hci_ipc_subimage'
Run: west build /Users/nrfproject -b nrf5340_audio_dk/nrf5340/cpuapp -d /Users/nrfproject/build/dev_gateway/build_debug
[0/4] Performing build step for 'hci_ipc_subimage'
ninja: no work to do.
[3/3] Completed 'hci_ipc_subimage'
NET core hex not found. Built as APP core child image.
NET core hex not found. Built as APP core child image.
build_prog.py finished. Report:
+------------+----------+---------+--------------+---------------------+---------------------+
| snr | snr conn | device | only reboot | core app programmed | core net programmed |
+------------+----------+---------+--------------+---------------------+---------------------+
| 1050xxxxxx | True | headset | Not selected | Selected | Selected |
| 1050xxxxxx | True | gateway | Not selected | Selected | Selected |
| 1000 | False | headset | Not selected | Not selected | Not selected |
+------------+----------+---------+--------------+---------------------+---------------------+

Parents
  • Hello,

    I wouldn't expect the VS Code extension update to affect anything as this application is built from the command line. Have you tried deleting the build folder to see if a clean rebuild fixes the problem? Another troubleshooting step is to print the hex file path in the program.py script to check where it expects to find the hex file.

    Best regards,

    Vidar

Reply
  • Hello,

    I wouldn't expect the VS Code extension update to affect anything as this application is built from the command line. Have you tried deleting the build folder to see if a clean rebuild fixes the problem? Another troubleshooting step is to print the hex file path in the program.py script to check where it expects to find the hex file.

    Best regards,

    Vidar

Children
Related