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

HTTP application update problem compiling

Hi,

I have problem compiling "HTTP application update" sample form the SDK for the NRF9160. I am using all the latest tools:
* segger embedded studio: v4.18
* nrf SDK v1.0

The error I get:
"opening dependency file C:/Users/NUC/Documents/nordic-sdk/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\NUC\Documents\nordic-sdk\ncs\mbedtls\library\memory_buffer_alloc.c.obj.d: No such file or directory"

Best regards,
Voja

  • # General config
    CONFIG_TEST_RANDOM_GENERATOR=y
    CONFIG_ASSERT=y
    CONFIG_REBOOT=y
    CONFIG_FP_SHARING=y
    
    # Network
    CONFIG_NETWORKING=y
    CONFIG_NET_SOCKETS=y
    CONFIG_NET_SOCKETS_OFFLOAD=y
    
    # LTE link control
    CONFIG_LTE_LINK_CONTROL=y
    CONFIG_LTE_AUTO_INIT_AND_CONNECT=y
    CONFIG_LTE_NETWORK_MODE_NBIOT=y
    
    # BSD library
    CONFIG_BSD_LIBRARY=y
    
    # Library for buttons and LEDs
    CONFIG_DK_LIBRARY=y
    CONFIG_DK_LIBRARY_INVERT_LEDS=n
    
    # Console
    CONFIG_CONSOLE_SUBSYS=y
    CONFIG_CONSOLE_HANDLER=y
    CONFIG_CONSOLE_GETCHAR=y
    
    # Main thread
    CONFIG_MAIN_THREAD_PRIORITY=7
    
    # Heap and stacks
    CONFIG_HEAP_MEM_POOL_SIZE=1024
    CONFIG_MAIN_STACK_SIZE=8192
    CONFIG_HW_STACK_PROTECTION=y
    
    # Enable DOWNLOAD libs
    CONFIG_NRF_DOWNLOAD_CLIENT=y
    
    # Enable Log, with debug messages and in place processing
    CONFIG_LOG=y
    CONFIG_LOG_DEFAULT_LEVEL=3
    CONFIG_LOG_IMMEDIATE=y
    
    CONFIG_FOTA_DOWNLOAD=y
    
    # GPIO
    CONFIG_GPIO=y
    
    CONFIG_DOWNLOAD_HOST="s3.amazonaws.com"
    # Prebuilt version 2:
    CONFIG_DOWNLOAD_FILE="/nordic-firmware-files/c1838e44-9d6f-4f41-990e-70b4e60770ce"
    CONFIG_APPLICATION_VERSION=1
    CONFIG_BOOTLOADER_MCUBOOT=y
    
    # Disable native network stack to save some memory
    CONFIG_NET_IPV4=n
    CONFIG_NET_IPV6=n
    CONFIG_NET_UDP=n
    CONFIG_NET_TCP=n
    

    Hi,

    This is the prj.conf file from the project. 

  • I mean this window  . What options are you using?

  • I have this exact problem too. 

    Project configuration:

     SES Open nRF Connect Project settings

    It does not compile for the non-ns-board either.

    I also have no problem compiling and running other projects, but wanted to try the FOTA-sample before integrating it into our current project. 

    Using nRF Connect SDK v1.0.0, SES v4.18. Any suggestions for this? I can provide other diagnostics if necessary.

  • asgeirsh said:
    I can provide other diagnostics if necessary.

     Can you show me the complete error message like Vojislav Milivojevic did?

  • Last lines of build (I've removed threads other than the one with the error):


    9> Compiling ‘aria.c’
    9> C:/gnuarmemb/bin/arm-none-eabi-gcc -DBUILD_VERSION=v1.14.99-ncs2 -DKERNEL -DMBEDTLS_CONFIG_FILE="nrf-config.h" -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/kernel/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/arch/arm/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/include/drivers -Ispm/zephyr/include/generated -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/lib/libc/minimal/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/cmsis/Include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx/hal -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/nrfx/mdk -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/zephyr/ext/hal/nordic/. -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/include -Ispm/zephyr/modules/nrfxlib/nrf_security/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/include -IC:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/include/mbedtls -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include-fixed -isystem C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -Os -nostdinc -g -imacros C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -mcmse -std=c99 -MD -MF C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\34e723374994a7b00674c8649efb9003\aria.c.obj.d -fno-diagnostics-show-caret -o spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/CMakeFiles/spm_mbedcrypto_vanilla.dir/34e723374994a7b00674c8649efb9003/aria.c.obj -c C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/library/aria.c
    [...]

    9> C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/mbedtls/library/asn1parse.c:387:1: fatal error: opening dependency file C:/Users/asgeir.s.hustad/Dev/Nordic_SDK/ncs/nrf/samples/nrf9160/http_application_update/build_nrf9160_pca10090ns/spm\zephyr\modules\nrfxlib\nrf_security\src\mbedtls\CMakeFiles\spm_mbedcrypto_vanilla.dir\C_\Users\asgeir.s.hustad\Dev\Nordic_SDK\ncs\mbedtls\library\asn1parse.c.obj.d: No such file or directory
    9> compilation terminated.

    Build failed

    Oddly, I'm now missing asn1parse.c.obj.d, not memory_buffer_alloc.c.obj.d like last time and like Vojislav Milivojevic.

    This is with nRF Connect SDK v.1.0.0, then ran west update afterwards to update dependencies. No error messages from that. MbedTLS was checked out with ref 53546ea0 as detached head.


Related