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

  • I already tried deleting build folder for a clean rebuild, but that didnt help.

    And I tried printing the path. The path seems correct. Hex files are inside their respective configurations inside the build folder that buildprog creates.

    It seems to work just fine on the command line. I use west to build and flash the project.

  • It's strange that the path.is_file() check is failing. Are you able to share the path to the hex file that was printed? It would also be helpful to know which SDK version you are using.

  • I am currently using SDK ver 0.16.5 and v2.7.0 toolchain

    The trace for the net core hex path that gets printed is as below:

    Net core hex path {} /Users/sanjayvarghese/Documents/waveworks/mhm_ble_prototype/build/dev_headset/build_debug/merged_CPUNET.hex
    Net core hex path {} /Users/sanjayvarghese/Documents/waveworks/mhm_ble_prototype/build/dev_gateway/build_debug/merged_CPUNET.hex
    NET core hex not found. Built as APP core child image.
    NET core hex not found. Built as APP core child image.

Reply
  • I am currently using SDK ver 0.16.5 and v2.7.0 toolchain

    The trace for the net core hex path that gets printed is as below:

    Net core hex path {} /Users/sanjayvarghese/Documents/waveworks/mhm_ble_prototype/build/dev_headset/build_debug/merged_CPUNET.hex
    Net core hex path {} /Users/sanjayvarghese/Documents/waveworks/mhm_ble_prototype/build/dev_gateway/build_debug/merged_CPUNET.hex
    NET core hex not found. Built as APP core child image.
    NET core hex not found. Built as APP core child image.

Children
Related