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

nRF5340 programming issue

I am attempting to flash my nRF5340-PDK with a sample application without success. I have tried /samples/basic/blinky, /samples/hello-world, and samples/bluetooth/hci_rpmsg.

I am developing in an Ubuntu 20 docker image on Ubuntu 18.04 host. I have followed the following getting started guide:

docs.zephyrproject.org/latest/getting_started/index.html

Here is a copy of my command and error messages

root@ta5:~/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg# west build -b nrf5340_dk_nrf5340_cpunet && west flash
-- west build: generating a build system
Including boilerplate (Zephyr base): /root/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg
-- Zephyr version: 2.3.99 (/root/zephyrproject/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.2") found components: Interpreter
-- Board: nrf5340_dk_nrf5340_cpunet
CMake Warning at /root/zephyrproject/zephyr/cmake/app/boilerplate.cmake:210 (message):
Deprecated BOARD=nrf5340_dk_nrf5340_cpunet name specified, board
automatically changed to: nrf5340pdk_nrf5340_cpunet.
Call Stack (most recent call first):
/root/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/root/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:5 (find_package)


ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found toolchain: zephyr (/root/zephyr-sdk-0.11.3)
-- Found west: /root/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found dtc: /root/zephyr-sdk-0.11.3/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /root/zephyrproject/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340pdk_nrf5340_cpunet.dts
nrf5340pdk_nrf5340_cpunet.dts.pre.tmp:67.25-73.5: Warning (unique_unit_address_if_enabled): /soc/clock@41005000: duplicate unit-address (also used in node /soc/power@41005000)
-- Generated zephyr.dts: /root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /root/zephyrproject/zephyr/Kconfig
Loaded configuration '/root/zephyrproject/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340pdk_nrf5340_cpunet_defconfig'
Merged configuration '/root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/prj.conf'
Configuration saved to '/root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/build/zephyr/.config'
Kconfig header saved to '/root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /root/zephyr-sdk-0.11.3/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Cache files will be written to: /root/.cache/zephyr
-- Build type:
-- Host: Linux/x86_64
-- Target: Generic/arm
-- Machine: cortexm
CMake Warning (dev) at /root/zephyrproject/modules/hal/libmetal/libmetal/cmake/options.cmake:55 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, option is clearing the
normal variable 'WITH_ZEPHYR_LIB'.
Call Stack (most recent call first):
/root/zephyrproject/modules/hal/libmetal/libmetal/CMakeLists.txt:17 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- Host: Linux/x86_64
-- Target: Generic/arm
-- Machine: cortexm
CMake Warning (dev) at /root/zephyrproject/modules/lib/open-amp/open-amp/cmake/options.cmake:51 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, option is clearing the
normal variable 'WITH_VIRTIO_MASTER'.
Call Stack (most recent call first):
/root/zephyrproject/modules/lib/open-amp/open-amp/CMakeLists.txt:21 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /root/zephyrproject/modules/lib/open-amp/open-amp/cmake/options.cmake:52 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.

For compatibility with older versions of CMake, option is clearing the
normal variable 'WITH_VIRTIO_SLAVE'.
Call Stack (most recent call first):
/root/zephyrproject/modules/lib/open-amp/open-amp/CMakeLists.txt:21 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- C_FLAGS : -Wall -Wextra
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/build
-- west build: building application
[1/219] Preparing syscall dependency handling

[214/219] Linking C executable zephyr/zephyr_prebuilt.elf
Memory region Used Size Region Size %age Used
FLASH: 110184 B 256 KB 42.03%
SRAM: 38617 B 64 KB 58.92%
IDT_LIST: 136 B 2 KB 6.64%
[219/219] Linking C executable zephyr/zephyr.elf
-- west flash: rebuilding
[0/1] cd /root/zephyrproject/zephyr/samples/bluet...uild/zephyr/cmake/flash && /usr/bin/cmake -E echo

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: /root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/build/zephyr/zephyr.hex
ERROR: JLinkARM DLL reported an error. Try again. If error condition
ERROR: persists, run the same command again with argument --log, contact Nordic
ERROR: Semiconductor and provide the generated log.log file to them.
FATAL ERROR: command exited with status 33: nrfjprog --program /root/zephyrproject/zephyr/samples/bluetooth/hci_rpmsg/build/zephyr/zephyr.hex -f NRF53 --snr 960117387 --coprocessor CP_NETWORK --sectorerase

Parents Reply Children
Related