Code Monkey home page Code Monkey logo

samples_for_nrf_connect_sdk's Introduction

Samples for the nRF Connect SDK

Here I will post samples I work on for the nRF Connect SDK. They are mostly for my own use, but sometimes I might post them to showcase functionality for DevZone users. The samples will not be activly maintained, so do not excpect them to be up to date. The samples will be here as they are made, so do not excpect them to work (unless I have told you they should work).

samples_for_nrf_connect_sdk's People

Contributors

hellesvik-nordic avatar vidarbe avatar hieuv avatar

Stargazers

 avatar GBA_WE avatar Billy Wu avatar Ever avatar Sean Farrelly avatar Hannes avatar Tony avatar Steve Park avatar Mario Linker avatar Archie Atkinson avatar GuoYuchao avatar  avatar Tim Chao avatar  avatar Bogdan Marinescu avatar weimao avatar  avatar Kris Wilk avatar  avatar  avatar Sergey Golovin avatar pika avatar  avatar Tai-Jie (Denny) avatar Frans Lutz avatar Alex Wang avatar WangXiaoHai avatar  avatar  avatar Ole Sæther avatar Charlie Shao avatar  avatar  avatar Nils Zottmann avatar João Dullius avatar

Watchers

Charlie Shao avatar  avatar Frans Lutz avatar Ole Sæther avatar  avatar  avatar  avatar

samples_for_nrf_connect_sdk's Issues

[mcuboot_smp_ble_simultaneous] Cannot upgrade: slots are not compatible

Hello, I try to use the mcuboot_smp_ble_simultaneous sample.
It compiles fine and the updates completes successfully in the nRF Connect App on Android.
But the image is not booted on the application core after nrfjprog --reset.

I am also facing some warnings on the application core.

I: Starting bootloader
W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?
W: Cannot upgrade: slots are not compatible
W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?
W: Cannot upgrade: slots are not compatible
I: Bootloader chainload address offset: 0xc000
*** Booting Zephyr OS build v3.2.99-ncs1 ***
AAA this to see it change.

I don't know why the both slots should be incompatible.
Thanks, Alex

mcuboot_serial_recovery_53 signed images

how can i disable the Mass Storage feature on the device in windows system?

ADMIN@DESKTOP-C9E5DTQ MINGW64 /f/ncs/v1.9.1
$ JLinkExe --help
bash: JLinkExe: command not found

thank you very much

mcuboot_smp_custom_key west build failed with error: Aborting due to Kconfig warnings

Thanks for your reply! I try to build the following sample. But it failed to build.

https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/keys_and_signatures/mcuboot_smp_custom_key

The following are log messages of west build.

D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_custom_key>west build -b nrf5340dk_nrf5340_cpuapp
-- west build: generating a build system

...

warning: MCUMGR (defined at subsys/mgmt/mcumgr/Kconfig:5) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: NET_BUF (=n), ZCBOR (=n). See
docs.zephyrproject.org/.../kconfig.html and/or look up MCUMGR in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.

D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_custom_key/prj.conf:3: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_UART

D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_custom_key/prj.conf:4: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_CMD_IMG_MGMT
Parsing D:/ncs/v2.4.0/zephyr/Kconfig
Loaded configuration 'D:/ncs/v2.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_custom_key/prj.conf'

error: Aborting due to Kconfig warnings

Procedures to reproduce this issue are as follows.

  1. Unzipping mcuboot_smp_custom_key.zip to D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\ folder.

  2. west build -b nrf5340dk_nrf5340_cpuapp

mcuboot_smp_ble_simultaneous west build failed

I would like to build https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/nrf5340/mcuboot_smp_ble_simultaneous. But it failed to build with the following messages.

D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble_simultaneous>west build -b nrf5340dk_nrf5340_cpuapp
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous
-- CMake version: 3.20.5
-- Using NCS Toolchain 2.4.0 for building. (D:/ncs/toolchains/31f4403e35/cmake)
-- Found Python3: D:/ncs/toolchains/31f4403e35/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: D:/ncs/v2.4.0/zephyr/.cache
-- Zephyr version: 3.3.99 (D:/ncs/v2.4.0/zephyr)
-- Found west (found suitable version "1.0.0", minimum required is "0.7.1")
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.0 (D:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.0 (D:/ncs/toolchains/31f4403e35/opt/zephyr-sdk)
-- Found Dtc: D:/ncs/toolchains/31f4403e35/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found BOARD.dts: D:/ncs/v2.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous/app.overlay
-- Generated zephyr.dts: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous/build/zephyr/dts.cmake

D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_SMP_UART

D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous/prj.conf:7: warning: attempt to assign the value 'y' to the undefined symbol MCUMGR_CMD_IMG_MGMT
Parsing D:/ncs/v2.4.0/zephyr/Kconfig
Loaded configuration 'D:/ncs/v2.4.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
Merged configuration 'D:/ncs/v2.4.0/bootloader/mcuboot/samples/zephyr/mcuboot_smp_ble_simultaneous/prj.conf'

error: Aborting due to Kconfig warnings

CMake Error at D:/ncs/v2.4.0/zephyr/cmake/modules/kconfig.cmake:339 (message):
command failed with return code: 1
Call Stack (most recent call first):
D:/ncs/v2.4.0/nrf/cmake/modules/kconfig.cmake:29 (include)
D:/ncs/v2.4.0/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
D:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
D:/ncs/v2.4.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'D:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE' '-DWEST_PYTHON=D:\ncs\toolchains\31f f4403e35\opt\bin\python.exe' '-BD:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble_simultaneous\build' -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp '-SD:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble_simultaneous'

Procedures to reproduce this issue are as follows.

  1. Unzipping mcuboot_smp_ble_simultaneous.zip to D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\ folder.

  2. cd D:\ncs\v2.4.0\bootloader\mcuboot\samples\zephyr\mcuboot_smp_ble_simultaneous

  3. west build -b nrf5340dk_nrf5340_cpuapp

Example for mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE does not work in ncs 2.2.0

set(mcuboot_CONFIG_BOOT_SIGNATURE_KEY_FILE \\"${CMAKE_CURRENT_SOURCE_DIR}/custom_key_dir/custom_priv.pem\\")

I get warning:
C:/ncs_proj/samples_for_nrf_connect_sdk-main/bootloader_samples/keys_and_signatures/mcuboot_smp_custom_key/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf:2: warning: malformed string literal in assignment to BOOT_SIGNATURE_KEY_FILE (defined at C:/ncs/v2.2.0/nrf/modules/mcuboot/boot/zephyr/Kconfig:58, C:/ncs/v2.2.0/bootloader/mcuboot/boot/zephyr/Kconfig:131, C:/ncs/v2.2.0/nrf/modules/mcuboot/Kconfig:3). Assignment ignored.

error: Aborting due to Kconfig warnings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.