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

problem with MCUboot

Hi,

As I understand Nordic NCS now supports nRF52 development for nrf52832/40/11/10, so based on this I am trying to make a simple application for nRF5232 chip (peripheral_uart) with mcuboot and eventually enable DFU over BLE for the device. 

Currently, I have a problem building application with CONFIG_BOOTLOADER_MCUBOOT=y

Build fails when it starts to build MCUBOOT. This is the output from command: west build -p always -b nrf52_pca10040

-- west build: build configuration:
       source directory: /home/voja/Documents/irnas/ncs/nrf/samples/usb/usb_uart_bridge
       build directory: /home/voja/Documents/irnas/ncs/nrf/samples/usb/usb_uart_bridge/build
       BOARD: nrf52840_pca10090 (origin: command line)
-- west build: generating a build system
-- Zephyr version: 2.1.99
-- Selected BOARD nrf52840_pca10090
-- Found west: /home/voja/.virtualenvs/zephyenv/bin/west (found suitable version "0.6.3", minimum required is "0.6.0")
-- Loading /home/voja/Documents/irnas/ncs/zephyr/boards/arm/nrf52840_pca10090/nrf52840_pca10090.dts as base
Devicetree configuration written to /home/voja/Documents/irnas/ncs/nrf/samples/usb/usb_uart_bridge/build/zephyr/include/generated/devicetree.conf
Parsing /home/voja/Documents/irnas/ncs/zephyr/Kconfig
/home/voja/Documents/irnas/ncs/nrf/lib/fprotect/Kconfig:20: WARNING: dt_int_val is deprecated.
/home/voja/Documents/irnas/ncs/bootloader/mcuboot/zephyr/Kconfig:37: WARNING: dt_int_val is deprecated.
Loaded configuration '/home/voja/Documents/irnas/ncs/zephyr/boards/arm/nrf52840_pca10090/nrf52840_pca10090_defconfig'
Merged configuration '/home/voja/Documents/irnas/ncs/nrf/samples/usb/usb_uart_bridge/prj.conf'
Configuration saved to '/home/voja/Documents/irnas/ncs/nrf/samples/usb/usb_uart_bridge/build/zephyr/.config'
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /home/voja/Documents/gcc-arm-none-eabi-8-2019-q3-update/bin/arm-none-eabi-gcc
-- Cache files will be written to: /home/voja/.cache/zephyr

=== child image mcuboot begin ===
-- Zephyr version: 2.1.99
CMake Error at /home/voja/Documents/irnas/ncs/zephyr/cmake/app/boilerplate.cmake:106 (message):
  Source directory equals build directory.  In-source builds are not
  supported.  Please specify a build directory, e.g.  cmake -Bbuild -H.
Call Stack (most recent call first):
  CMakeLists.txt:47 (include)


-- Configuring incomplete, errors occurred!
See also "/home/voja/Documents/irnas/ncs/bootloader/mcuboot/boot/zephyr/CMakeFiles/CMakeOutput.log".
CMake Error at /home/voja/Documents/irnas/ncs/nrf/cmake/multi_image.cmake:176 (message):
  CMake generation for mcuboot failed, aborting.  Command: 1
Call Stack (most recent call first):
  /home/voja/Documents/irnas/ncs/nrf/cmake/multi_image.cmake:76 (add_child_image_from_source)
  /home/voja/Documents/irnas/ncs/bootloader/mcuboot/zephyr/CMakeLists.txt:86 (add_child_image)


-- Configuring incomplete, errors occurred!
See also "/home/voja/Documents/irnas/ncs/nrf/samples/usb/usb_uart_bridge/build/CMakeFiles/CMakeOutput.log".
See also "/home/voja/Documents/irnas/ncs/nrf/samples/usb/usb_uart_bridge/build/CMakeFiles/CMakeError.log".

 

I was able to build the MCUboot separately, but as I understand this should be done automatically and added to the application when I have CONFIG_BOOTLOADER_MCUBOOT=y in prj.conf file. 

I have the latest release (v1.2.0) of NCS on Ubuntu 18.04

Is there something I am missing?

Best regards,
Vojislav

Parents Reply Children
No Data
Related