Board target with and without ns on nRF54L15DK

Hi there!

May I know why sample codes cannot be run on nRF54L15DK when board target "nrf54l15dk/nrf54l15/cpuapp" is chosen?

Yet, everything is fine when nrf54l15dk/nrf54l15/cpuapp/ns" is selected.

Thanks!

Parents
  • Hi,

    Which NCS version are you using?

    Can you elaborate what is not working when you build for "nrf54l15dk/nrf54l15/cpuapp" target? I have built many samples for this target, and never seen any problems with running the samples.

    Which samples have you tested?

    Which version of the nRF54L15 DK are you using? (see sticker on the board)

    Best regards,
    Jørgen

  • Hi,

    Can you try to install nRF Connect SDK (NCS) and toolchain v2.9.0 and see if you experience the same problem there?

    nRF54L15 DK v0.9.2 has a revision 1 chip and this is only supported in NCS v2.9.0. The changes should not have any impact on this, but it would be good if you can try this out anyway.

    Best regards,
    Jørgen

  • Building direct_test_mode
    C:\Windows\system32\cmd.exe /d /s /c "west build --build-dir c:/Users/morri/nrf/direct_test_mode/build c:/Users/morri/nrf/direct_test_mode --pristine --board nrf54l15dk/nrf54l15/cpuapp -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/users/morri/nrf/direct_test_mode"
    
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    Parsing c:/Users/morri/nrf/direct_test_mode/Kconfig.sysbuild
    Loaded configuration 'C:/Users/morri/nrf/direct_test_mode/build/_sysbuild/empty.conf'
    Merged configuration 'c:/Users/morri/nrf/direct_test_mode/sysbuild.conf'
    Configuration saved to 'C:/Users/morri/nrf/direct_test_mode/build/zephyr/.config'
    Kconfig header saved to 'C:/Users/morri/nrf/direct_test_mode/build/_sysbuild/autoconf.h'
    -- 
       **************************************
       * Running CMake for direct_test_mode *
       **************************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Users/morri/nrf/direct_test_mode
    -- CMake version: 3.21.0
    -- Found Python3: C:/ncs/toolchains/b620d30767/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/ncs/v2.9.0/zephyr/.cache
    -- Zephyr version: 3.7.99 (C:/ncs/v2.9.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54l15dk, qualifiers: nrf54l15/cpuapp
    -- Found host-tools: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.17.0 (C:/ncs/toolchains/b620d30767/opt/zephyr-sdk)
    -- Found Dtc: C:/ncs/toolchains/b620d30767/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/ncs/v2.9.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp.dts
    -- Found devicetree overlay: C:/Users/morri/nrf/direct_test_mode/boards/nrf54l15dk_nrf54l15_cpuapp.overlay
    unit address and first address in 'reg' (0x5004c000) don't match for /soc/peripheral@50000000/vpr@4c000/mailbox@1
    -- Generated zephyr.dts: C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/include/generated/zephyr/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/dts.cmake
    Parsing C:/Users/morri/nrf/direct_test_mode/Kconfig
    Loaded configuration 'C:/ncs/v2.9.0/zephyr/boards/nordic/nrf54l15dk/nrf54l15dk_nrf54l15_cpuapp_defconfig'
    Merged configuration 'C:/Users/morri/nrf/direct_test_mode/prj.conf'
    Merged configuration 'C:/Users/morri/nrf/direct_test_mode/boards/nrf54l15dk_nrf54l15_cpuapp.conf'
    Merged configuration 'C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/.config.sysbuild'
    Configuration saved to 'C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/.config'
    Kconfig header saved to 'C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/include/generated/zephyr/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Setting build type to 'MinSizeRel' as none was specified.
    CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2133 (message):
      __ASSERT() statements are globally ENABLED
    
    
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Users/morri/nrf/direct_test_mode/build
    -- west build: building application
    [4/158] Generating include/generated/zephyr/version.h
    [158/158] Linking C executable zephyr\zephyr.elf
    FAILED: zephyr/zephyr.elf zephyr/zephyr.map zephyr/zephyr.hex zephyr/zephyr.bin zephyr/zephyr.stat C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.map C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.hex C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.bin C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.stat 
    cmd.exe /C "cd . && C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -Os -DNDEBUG -gdwarf-4 -gdwarf-4 zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj -o zephyr\zephyr.elf  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -T  zephyr/linker.cmd  -Wl,-Map=C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr_final.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/libarch__arm__core.a  zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a  zephyr/arch/arch/arm/core/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a  zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a  zephyr/lib/libc/picolibc/liblib__libc__picolibc.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/nrf54l15/libsoc__nordic.a  zephyr/drivers/cache/libdrivers__cache.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  modules/segger/libmodules__segger.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  -LC:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr  -Wl,--print-memory-usage  zephyr/arch/common/libisr_tables.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfp16-format=ieee  -mtp=soft  -fuse-ld=bfd  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  -specs=picolibc.specs  -DPICOLIBC_LONG_LONG_PRINTF_SCANF -L"c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp" -lc -lgcc && cmd.exe /C "cd /D C:\Users\morri\nrf\direct_test_mode\build\direct_test_mode\zephyr && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe -E echo "Generating files from C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.elf for board: nrf54l15dk" && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe -E copy zephyr_final.map zephyr.map && CMAKE_OBJCOPY-NOTFOUND --output-target=ihex --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.hex && CMAKE_OBJCOPY-NOTFOUND --gap-fill 0xFF --output-target=binary --remove-section=.comment --remove-section=COMMON --remove-section=.eh_frame zephyr.elf zephyr.bin && C:\ncs\toolchains\b620d30767\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-readelf.exe -e zephyr.elf > zephyr.stat && C:\ncs\toolchains\b620d30767\opt\bin\python.exe C:/ncs/v2.9.0/zephyr/scripts/build/check_init_priorities.py --elf-file=C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.elf""
    Memory region         Used Size  Region Size  %age Used
               FLASH:       54012 B      1428 KB      3.69%
                 RAM:       10672 B       188 KB      5.54%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from C:/Users/morri/nrf/direct_test_mode/build/direct_test_mode/zephyr/zephyr.elf for board: nrf54l15dk
    'CMAKE_OBJCOPY-NOTFOUND' is not recognized as an internal or external command,
    operable program or batch file.
    ninja: build stopped: subcommand failed.
    FAILED: _sysbuild/sysbuild/images/direct_test_mode-prefix/src/direct_test_mode-stamp/direct_test_mode-build C:/Users/morri/nrf/direct_test_mode/build/_sysbuild/sysbuild/images/direct_test_mode-prefix/src/direct_test_mode-stamp/direct_test_mode-build 
    cmd.exe /C "cd /D C:\Users\morri\nrf\direct_test_mode\build\direct_test_mode && C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --build ."
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE' --build C:/Users/morri/nrf/direct_test_mode/build
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    Hi there!

    I tried to use SDK2.9 and toolchain 2.9 but there is an error coming out. Could you give some hints to me so I could fix it?

    Thanks! 

  • Can you try to delete the build directory before trying to rebuild with NCS 2.9.0?

Reply Children
Related