Including mcuboot is causing build error FileNotFoundError: [WinError 2] The system cannot find the file specified

Hi,

when I try to configure my board for DFU i get this error at the end of build

[ 98%] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[ 98%] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[ 98%] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[100%] Linking C executable zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 231368 B 232960 B 99.32%
RAM: 47868 B 128 KB 36.52%
IDT_LIST: 0 GB 2 KB 0.00%
Generating files from zephyr.elf for board: p10
Traceback (most recent call last):
File "C:/ncs/v2.3.0/zephyr/scripts/zephyr_module.py", line 624, in <module>
main()
File "C:/ncs/v2.3.0/zephyr/scripts/zephyr_module.py", line 579, in main
west_projs = west_projects()
File "C:/ncs/v2.3.0/zephyr/scripts/zephyr_module.py", line 455, in west_projects
manifest = Manifest.from_file()
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 1171, in from_file
return Manifest(topdir=topdir, config=config,
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 1397, in __init__
self._load_validated()
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 1792, in _load_validated
self._load_projects(manifest_data, url_bases, defaults)
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 2115, in _load_projects
self._import_from_project(project, imp)
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 2301, in _import_from_project
self._import_map_from_project(project, imp)
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 2328, in _import_map_from_project
imported = self._import_content_from_project(project, imap.file)
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 2379, in _import_content_from_project
project.is_cloned():
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 934, in is_cloned
res = self.git('rev-parse --show-cdup', check=False, cwd=cwd,
File "C:\ncs\toolchains\v2.3.0\opt\bin\lib\site-packages\west\manifest.py", line 831, in git
popen = subprocess.Popen(
File "subprocess.py", line 854, in __init__
File "subprocess.py", line 1307, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
zephyr: checking if cloned
mingw32-make[3]: *** [zephyr\CMakeFiles\zephyr_final.dir\build.make:192: zephyr/zephyr.elf] Error 1
mingw32-make[3]: *** Deleting file 'zephyr/zephyr.elf'
mingw32-make[2]: *** [CMakeFiles\Makefile2:4166: zephyr/CMakeFiles/zephyr_final.dir/all] Error 2
mingw32-make[1]: *** [CMakeFiles\Makefile2:4173: zephyr/CMakeFiles/zephyr_final.dir/rule] Error 2
mingw32-make: *** [Makefile:526: zephyr_final] Error 2

I am trying to follow  Add DFU support to your application to enable DFU on my board but am having lots of seemingly unrelated issues in the build phase. After managing to shrink the app enough to fit into the flash it seem that I cannot get through this error.

# Enable mcumgr.
CONFIG_MCUMGR=y
# Enable most core commands.
CONFIG_MCUMGR_CMD_IMG_MGMT=y
CONFIG_MCUMGR_CMD_OS_MGMT=y
# Ensure an MCUboot-compatible binary is generated.
CONFIG_BOOTLOADER_MCUBOOT=y
# Allow for large Bluetooth data packets.
CONFIG_BT_L2CAP_TX_MTU=252
CONFIG_BT_BUF_ACL_RX_SIZE=256

# Enable the Bluetooth (unauthenticated) and shell mcumgr transports.
CONFIG_MCUMGR_SMP_BT=y
CONFIG_MCUMGR_SMP_BT_AUTHEN=n

# Some command handlers require a large stack.
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

If I don't add those config lines then the build works normally.


OS: Windows  

NRF SDK 2.3.0

Any ideas on how to fix this or good direction on how to implement MCUBOOT DFU - preferably to work with Android-DFU-Library 

Best regards,

Matej 

Related