Skip to content

nrf52840_pca10059 executables do not work without mcuboot #14945

@markrages

Description

@markrages

Description

The LED blink example build for nrf52840_pca10059 does not work when loaded with nRF Connect.

To Reproduce
Steps to reproduce the behavior:

  1. west build -d build/nRF52/blinky -s zephyrproject/zephyr/samples/basic/blinky -b nrf52840_pca10059 -- -DCONFIG_FLASH_BASE_ADDRESS=0x1000 (the define is necessitated by config BOARD_HAS_NRF5_BOOTLOADER not honored for nrf52840_pca10059 #14943)
  2. Load executable with nrfutil:
nrfutil pkg generate --application $BUILDDIR/zephyr/zephyr.hex --hw-version 52 --sd-req 0 --application-version=0  t.zip

nrfutil dfu usb-serial --package=t.zip --serial-number=EC4938BFC6DB --connect-delay=0
  1. The LED is not blinking on the target board.

Expected behavior
The LED blinks.

Actual behavior
The LED doesn't blink.

Impact
Prevents simple use of nRF-Connect app, or distribution of images.

Workaround
The LED can blinks if I use this workaround, suggested by @mike-scott on IRC.

  1. west build -d build/nRF52/mcuboot -s mcuboot/boot/zephyr -b nrf52840_pca10059 -- -DCONFIG_FLASH_LOAD_OFFSET=0x1000 -DCONFIG_FLASH_LOAD_SIZE=0xf000
  2. west build -d build/nRF52/blinky -s zephyrproject/zephyr/samples/basic/blinky -b nrf52840_pca10059 -- -DCONFIG_FLASH_LOAD_OFFSET=0x10000 -DCONFIG_FLASH_LOAD_SIZE=0x5E000
  3. west sign -d build/nRF52/blinky -t imgtool -- --key mcuboot/root-rsa-2048.pem
  4. load build/nRF52/mcuboot/zephyr/zephyr.hex and zephyr.signed.hex simultaneously with nRF Connect app.

Environment

  • OS: Ubuntu 18.04
  • Toolchain: zephyr-sdk-0.10.0
  • Commit: c3cf543

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions