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

spm/libspmsecureentries.a: No such file or directory

Hi,

With the NRF Connect / NCS SDK, I can build the asset_tracker and serial_lte_modem without issue.

I want to make my own project, so I copied asset_tracker entirely into asset_tracker2.

Now the project won't build:

Linking ‘zephyr_prebuilt.elf’

  spm/libspmsecureentries.a: No such file or directory

Indeed that libspmsecureentries.a only appears when I build in the asset_tracker directory and not asset_tracker2

I tried the same with serial_lte_modem -> serial_lte_modem2 and it also leaves out the same libspmsecureentries.a

Being that it's only the directory name that changed, what is it about my environment that is causing libspmsecureentries.a to be skipped?

 

  • FYI same problem if i build with ninja on the command line.  Already tried deleting the build_* directory for the respective projects, but same problem.

  • Hi! 

    I am able to copy an application, rename it, build it and flash it to my device so I'll need more information to be able to reproduce this issue. 

    Are you moving the projects from their original location? Which NCS version are you using?

    I am using west in the command line. Should I try with SES as well?

    Best regards,

    Heidi

  • Good to know that you are not having issues.  What west/ncs are you using?

    in ncs/nrf, I'm on (tag: v1.4.2)

    and of course west is updated.

    same issue on command line and SES, so if I solve the CLI version that would make me most happy Slight smile

    here's the west update info in case it helps

    === updating zephyr (zephyr):
    
    HEAD is now at e34b2f477e [nrf noup] Bluetoooth: Add experimental for non-qualified options
    
    === updating mcuboot (bootloader/mcuboot):
    
    HEAD is now at ac05235 [nrf temphack] Kconfig: select 8-bits flash access for recovery mode
    
    === updating mcumgr (modules/lib/mcumgr):
    
    HEAD is now at 5051f9d snapshot: Update mcumgr to commit 8d087a7e from the upstream
    
    === updating nrfxlib (nrfxlib):
    
    HEAD is now at 65562a9 mpsl: rev d247165baec723fe1fd98272c39d29ae3703e5f5
    
    === updating cmock (test/cmock):
    
    HEAD is now at c243b9a Merge pull request #203 from bmcdonnell/grammar
    
    === updating unity (test/cmock/vendor/unity):
    
    HEAD is now at 031f3bb Merge pull request #340 from elliot-gawthrop/unit-test-execution-time
    
    === updating mbedtls-nrf (mbedtls):
    
    HEAD is now at 3ede1737d Merge pull request #710 from ARMmbed/mbedtls-2.23.0r0-pr
    
    === updating nanopb (modules/lib/nanopb):
    
    HEAD is now at df0e92f Publishing nanopb-0.4.2
    
    === updating Alexa-Gadgets-Embedded-Sample-Code (modules/alexa-embedded):
    
    HEAD is now at face92d Update firmware.options signature_size from 48 to 65
    
    === updating cmsis (modules/hal/cmsis):
    
    HEAD is now at 542b229 DSP: Integrate CMSIS-DSP 1.8.0 (CMSIS 5.7.0)
    
    === updating canopennode (modules/lib/canopennode):
    
    HEAD is now at 468d350 Merge pull request #2 from vestas-wind-systems/update_to_v1_3_master
    
    === updating ci-tools (tools/ci-tools):
    
    HEAD is now at da9a2df labels: change test suite label
    
    === updating civetweb (modules/lib/civetweb):
    
    HEAD is now at 99129c5e Merge pull request #778 from antmicro/zephyr-filtering
    
    === updating fatfs (modules/fs/fatfs):
    
    HEAD is now at 1369778 fs: Add kconfig option for enabling exFAT support
    
    === updating hal_nordic (modules/hal/nordic):
    
    HEAD is now at 6038f91 nrf_power: Fix implementation of workaround for nRF52 anomaly 197
    
    === updating hal_st (modules/hal/st):
    
    HEAD is now at 5b3ec3e hal_st: CMakelists: Update coding style to main repo
    
    === updating libmetal (modules/hal/libmetal):
    
    HEAD is now at 0b23894 lib: update libmetal to SHA db77c464..
    
    === updating lvgl (modules/lib/gui/lvgl):
    
    HEAD is now at 928b61c7 lvgl: add support for v7.0.2
    
    === updating mbedtls (modules/crypto/mbedtls):
    
    HEAD is now at aef137b mbedtls: Update to mbedTLS 2.16.8
    
    === updating net-tools (tools/net-tools):
    
    HEAD is now at 1c4fdba docker: Add dante SOCKS 5 proxy
    
    === updating open-amp (modules/lib/open-amp):
    
    HEAD is now at 724f7e2 lib: update open-amp lib to release v2020.04.0
    
    === updating loramac-node (modules/lib/loramac-node):
    
    HEAD is now at 3f545d76 Issue #917 - Added new specific board API to initialize the RF switch (SX126xIoRfSwitchInit)
    
    === updating openthread (modules/lib/openthread):
    
    HEAD is now at 07f430dac cmake: openthread depends on generated headers in Zephyr
    
    === updating segger (modules/debug/segger):
    
    HEAD is now at 874d9e9 rtt: Device instance are all constant now
    
    === updating tinycbor (modules/lib/tinycbor):
    
    HEAD is now at 40daca9 zephyr: Remove TINYCBOR from interface libraries
    
    === updating tinycrypt (modules/crypto/tinycrypt):
    
    HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    
    === updating littlefs (modules/fs/littlefs):
    
    HEAD is now at 9e4498d lfs_util: fix log declaration when logging is disabled
    
    === updating mipi-sys-t (modules/debug/mipi-sys-t):
    
    HEAD is now at 957d46b Delete initialization related code from mipi-sys-t tree
    
    === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    
    HEAD is now at f86079a nrfx: hal: Add missing functions
    
    === updating edtt (tools/edtt):
    
    HEAD is now at c39888f Update unsupported commands test to handle command status response

  • And copied directories are in the same directory (just different folder)

    so like

    /applications/asset_tracker

    /applications/asset_tracker2

  • I'm testing on the same NCS tag you are one with west version 0.7.2. 


    So you copy the asset_tracker directory to the same location, name it asset_tracker2, run west build -b nrf9160dk_nrf9160ns -p and get errors? Could you copy the exact error messages and paste them in your next comment? 

Related