This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error when adding MCUBOOT to project

I'm using nRF Connect v1.5.0, Zephyr, and Segger Embedded Studio (SES) to develop an application I'm testing on nRF5340-DK.

I have a project that compiles and runs.    But now I want to include MCUBOOT so I can eventually add in FOTA updates.

My understanding is that I only need to add "CONFIG_BOOTLOADER_MCUBOOT=y" to prj.conf and rebuild the solution to include MCUBOOT in the project.

I added the statement to prj.conf, ran Cmake in SES, then attempted to rebuild the project/solution, but the build fails.

The error message seems to indicate that it can't find a file, but it looks like the path listed in the error message may be malformed.   The first part of the path looks like it proceeds down through the build directory hierarchy, but then the "relative back-a-directory" attempts to traverse a directory that doesn't exist.  The path ends with the install directory where nRF_Connect SDK is installed (E:/AdditionalWindowsTools/Nordic/nRF_Connect_SDK).

Is there some other parameter I need to set to get MCUBOOT included in my project?

Here is a screen capture showing the error:

Thanks!

Parents Reply Children
  • I was sidetracked by another project, but am now back to this problem.   I shortened the installation path for the SDK (to a single letter name at E:\) and, as you said this fixed the problem.

    It looks like the offending path was:

    ./mcuboot/modules/mcuboot/boot/bootutil/zephyr/CMakeFiles/..__bootloader__mcuboot__boot__bootutil__zephyr.dir/22adb838ab08cf9a5b3965c2da2bd4f7/bootutil_public.c.obj

    Not sure where the very long names in the path come from, but I suspect Zephyr.

    While I don't like using single character names for my paths, I guess they will have to stay until some of the name issues in Zephyr are fixed.

    Thanks for your help!

Related