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

Unable to run peripheral_lbs sample on the nRF5340DK with the nRFConnect v1.5.0

The  peripheral_lbs sample on the nRF5340 with the nRFConnect v1.5.0 builds fine and the merged.hex file downloads fine, but it does not appear to be running, no blinking light.  This seems to be true for the other bluetooth samples also.

The blinky sample works fine in v1.5.0.  Also, if I try the peripheral_lbs  sample from nRFConnect v1.4.2 it works fine.  I have no problem using the nRFConnect v1.5.0 if I build for an nRF52832 device.

When I open the project I am using the following settings:

Release: 1.5.0  Toolchain version 1.5.0

Projects: peripheral_lbs

Board Name: nrf5340dk_nrf5340_cpuappns

Build Directory: default

Checked Clean Build Directory.

The SDK was installed using the Toolchain Manager. I removed the SDK, verified it was deleted, and reinstalled it and had the same result.  Here is the SDK install log:

2021-03-14T17:52:35.773Z INFO Start to install toolchain v1.5.0
2021-03-14T17:52:35.779Z INFO Installing ncs-toolchain-v1.5.0-20210225-607a0e0.zip at C:\Users\pdxal\ncs\v1.5.0\toolchain
2021-03-14T17:52:35.779Z DEBUG Install with toolchain version 20210225
2021-03-14T17:52:35.779Z DEBUG Install with sha512 5781e7500271805e1595ebf3eb04e75b5bd1e0f204dcb29a7c172d2b388f1a9a62b0fd40483b6d529c4e0a6a2f138e040fabb5ca2e360a40256ccb87c573bdce
2021-03-14T17:52:35.834Z INFO Downloading toolchain v1.5.0
2021-03-14T17:56:13.909Z INFO Finished downloading version v1.5.0 of the toolchain after approximately 4 minute(s)
2021-03-14T17:56:13.909Z INFO Unpacking toolchain v1.5.0
2021-03-14T17:59:47.465Z INFO Finished unpacking version v1.5.0; win32; ia32 of the toolchain after approximately 4 minute(s)
2021-03-14T17:59:47.467Z INFO Update config file
2021-03-14T17:59:47.486Z INFO Cloning nRF Connect SDK v1.5.0
2021-03-14T17:59:47.524Z INFO Initializing environment for v1.5.0
2021-03-14T18:00:02.301Z INFO Updating zephyr repository for v1.5.0
2021-03-14T18:01:43.441Z INFO Updating mcuboot repository for v1.5.0
2021-03-14T18:01:48.241Z INFO Updating nrfxlib repository for v1.5.0
2021-03-14T18:02:24.051Z INFO Updating trusted repository for v1.5.0
2021-03-14T18:02:38.522Z INFO Updating tfm repository for v1.5.0
2021-03-14T18:02:53.612Z INFO Updating connectedhomeip repository for v1.5.0
2021-03-14T18:03:19.009Z INFO Updating cmock repository for v1.5.0
2021-03-14T18:03:22.034Z INFO Updating unity repository for v1.5.0
2021-03-14T18:03:24.811Z INFO Updating mbedtls repository for v1.5.0
2021-03-14T18:03:43.177Z INFO Updating nanopb repository for v1.5.0
2021-03-14T18:03:47.386Z INFO Updating Alexa repository for v1.5.0
2021-03-14T18:03:48.694Z INFO Updating cddl repository for v1.5.0
2021-03-14T18:03:50.009Z INFO Updating cmsis repository for v1.5.0
2021-03-14T18:03:53.904Z INFO Updating canopennode repository for v1.5.0
2021-03-14T18:03:55.506Z INFO Updating civetweb repository for v1.5.0
2021-03-14T18:04:04.125Z INFO Updating fatfs repository for v1.5.0
2021-03-14T18:04:05.246Z INFO Updating hal_nordic repository for v1.5.0
2021-03-14T18:04:08.840Z INFO Updating hal_st repository for v1.5.0
2021-03-14T18:04:17.753Z INFO Updating libmetal repository for v1.5.0
2021-03-14T18:04:19.717Z INFO Updating lvgl repository for v1.5.0
2021-03-14T18:04:32.764Z INFO Updating mbedtls repository for v1.5.0
2021-03-14T18:04:35.145Z INFO Updating mcumgr repository for v1.5.0
2021-03-14T18:04:36.529Z INFO Updating net repository for v1.5.0
2021-03-14T18:04:40.344Z INFO Updating open repository for v1.5.0
2021-03-14T18:04:42.043Z INFO Updating loramac repository for v1.5.0
2021-03-14T18:04:55.231Z INFO Updating openthread repository for v1.5.0
2021-03-14T18:05:20.792Z INFO Updating segger repository for v1.5.0
2021-03-14T18:05:21.767Z INFO Updating tinycbor repository for v1.5.0
2021-03-14T18:05:23.486Z INFO Updating tinycrypt repository for v1.5.0
2021-03-14T18:05:25.007Z INFO Updating littlefs repository for v1.5.0
2021-03-14T18:05:26.560Z INFO Updating mipi repository for v1.5.0
2021-03-14T18:05:28.134Z INFO Updating nrf_hw_models repository for v1.5.0
2021-03-14T18:05:29.562Z INFO Updating edtt repository for v1.5.0
2021-03-14T18:05:32.015Z INFO Finished cloning version v1.5.0 of the nRF Connect SDK after approximately 6 minute(s)
2021-03-14T18:07:51.649Z INFO Open Segger Embedded Studio

Parents Reply
  • Programming the network sample fixed it!!!  All of the samples and my test code are working great now.  Thanks!!!

    When I got to step 8, the download looked like it failed, and I got:

    Failed to prepare RAMCode using RAM
    Download failed
    Failed to download application.
    Generic error.
    Please check J-Link and target connection.
    Illegal value 0x21009658 written to register 66 (MSP_NS) ignored

    So I tried Target->Erase All which also looked like it didn't work, but when I retried downloading merged.hex everything started working :-)

Children
Related