Blinky example doesn't work on NRF54H20-DK

Hello!

I have NRF54H20-DK and I'm trying to run the Blinky example.

I am able to build and program the DK, but nothing happens on LEDs.

Could you please help what else I should check?

NRF54H20-DK: 0.8.2

nRF Connect SDK: v2.7.99-cs2

Thanks.

  • Hi

    Can you show me what build command you've used for building the sample? You can also try sing west flash --recover to make sure you erase what is already on the nRF54H20 when flashing it so there are no strange overlaps.

    Please also share what version you have of nrfutil and nrfutil device with the commands:

    • nrfutil --version
    • nrfutil device --version

    Best regards,

    Simon

  • I have used "west build -p -b nrf54h20dk/nrf54h20/cpuapp" command.

    (v2.7.99-cs2) e:\Misha\WorkProjects\ZephyrBasedProjects\blinky> nrfutil --version
    nrfutil 7.12.0 (39003c9 2024-06-10)
    commit-hash: 39003c9d0e5d946af0f417cfadf4ac55a6d03c19
    commit-date: 2024-06-10
    host: x86_64-pc-windows-msvc
    build-timestamp: 2024-06-10T15:56:55.227746900Z
    classification: nrf-external


    (v2.7.99-cs2) e:\Misha\WorkProjects\ZephyrBasedProjects\blinky> nrfutil device --version
    nrfutil-device 2.7.4 (57c8228 2024-11-01)
    commit-hash: 57c82285a70af8fa8418248c1367a5540a935a72
    commit-date: 2024-11-01
    host: x86_64-pc-windows-msvc
    build-timestamp: 2024-11-01T13:09:52.742390300Z
    classification: nrf-external

    Detected SEGGER J-Link version: JLink_V7.94i

    (v2.7.99-cs2) e:\Misha\WorkProjects\ZephyrBasedProjects\blinky> west flash --recover
    -- west flash: rebuilding
    [0/7] Performing build step for 'blinky'
    ninja: no work to do.
    [7/7] Generating ../zephyr/dfu_suit.zip
    -- west flash: using runner nrfutil
    -- runners.nrfutil: reset after flashing requested
    Using board 001051163442
    -- runners.nrfutil: Recovering and erasing flash memory for both the network and application cores.
    -- runners.nrfutil: Flashing file: E:\Misha\WorkProjects\ZephyrBasedProjects\blinky\build\blinky\zephyr\uicr_merged.hex
    -- runners.nrfutil: Recover
    -- runners.nrfutil: Recover
    -- runners.nrfutil: Programming image
    -- runners.nrfutil: Verifying image
    -- runners.nrfutil: Programming image
    -- runners.nrfutil: Verifying image
    -- runners.nrfutil: Erase
    -- runners.nrfutil: Programming image
    -- runners.nrfutil: Verifying image
    -- runners.nrfutil: Reset
    -- runners.nrfutil: Board with serial number 1051163442 flashed successfully.

    But after that LEDs don't blink.

    Thanks.

  • Just to make sure, your sample is the same as in ..\ncs\v2.7.99-cs2\zephyr\samples\basic\blinky correct? I just tested on my end with an nRF54H20 DK and was able to build and flash with the commands you describe here and the LED on the DK blinks without an issue.

    I see that you have an older nrfutil version than me (with v7.13.0 on my end), so you can try upgrading that. The other difference is that you build the project out of tree. As I build the sample within the ncs\v2.7.99-cs2\zephyr\samples\basic\blinky folder, so you could try that as well on your end. 

    If you still have no luck. Try uploading the full build log here so we can check what's happening.

    Best regards,

    Simon

  • I have upgraded the nrfutil to v7.13.0

    (v2.7.99-cs2) e:\Misha\NCSDK\zephyr\samples\basic\blinky> nrfutil --version
    nrfutil 7.13.0 (8289424 2024-07-01)
    commit-hash: 82894242d19ff24a1541712312b3ea3af0ca8f85
    commit-date: 2024-07-01
    host: x86_64-pc-windows-msvc
    build-timestamp: 2024-07-01T07:37:50.864803700Z
    classification: nrf-external

    I have also built the blinky within the zephyr\samples\basic\blinky folder. 

    But this didn't help me. Here is my build and flash log.

    (v2.7.99-cs2) e:\Misha\NCSDK\zephyr\samples\basic\blinky> west build -p -b nrf54h20dk/nrf54h20/cpuapp
    -- west build: generating a build system
    Loading Zephyr module(s) (Zephyr base): sysbuild_default
    -- Found Python3: E:/Misha/NCSDK/toolchains/2c13e7691c/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: E:/Misha/NCSDK/zephyr/.cache
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54h20dk, qualifiers: nrf54h20/cpuapp
    Parsing E:/Misha/NCSDK/zephyr/share/sysbuild/Kconfig
    Loaded configuration 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/_sysbuild/empty.conf'
    Merged configuration 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/_sysbuild/empty.conf'
    Configuration saved to 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/zephyr/.config'
    Kconfig header saved to 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/_sysbuild/autoconf.h'
    --
       ****************************
       * Running CMake for blinky *
       ****************************
    
    Loading Zephyr default modules (Zephyr base).
    -- Application: E:/Misha/NCSDK/zephyr/samples/basic/blinky
    -- CMake version: 3.21.0
    -- Using NCS Toolchain 2.7.20240926.189312493852 for building. (E:/Misha/NCSDK/toolchains/2c13e7691c/cmake)
    -- Found Python3: E:/Misha/NCSDK/toolchains/2c13e7691c/opt/bin/python.exe (found suitable version "3.12.4", minimum required is "3.8") found components: Interpreter
    -- Cache files will be written to: E:/Misha/NCSDK/zephyr/.cache
    -- Zephyr version: 3.6.99 (E:/Misha/NCSDK/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf54h20dk, qualifiers: nrf54h20/cpuapp
    -- Found host-tools: zephyr 0.16.8 (E:/Misha/NCSDK/toolchains/2c13e7691c/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.8 (E:/Misha/NCSDK/toolchains/2c13e7691c/opt/zephyr-sdk)
    -- Found Dtc: E:/Misha/NCSDK/toolchains/2c13e7691c/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: E:/Misha/NCSDK/zephyr/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp.dts
    -- Generated zephyr.dts: E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/dts.cmake
    Parsing E:/Misha/NCSDK/zephyr/Kconfig
    Loaded configuration 'E:/Misha/NCSDK/zephyr/boards/nordic/nrf54h20dk/nrf54h20dk_nrf54h20_cpuapp_defconfig'
    Merged configuration 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/prj.conf'
    Merged configuration 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/.config.sysbuild'
    Configuration saved to 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/.config'
    Kconfig header saved to 'E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: e:/misha/ncsdk/toolchains/2c13e7691c/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: E:/Misha/NCSDK/toolchains/2c13e7691c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    INFO Generate MPI for ROOT manifest (suit_mpi_ROOT.hex;nordicsemi.com;nRF54H20_sample_root;address=0xe1ed000;independent updates)
    INFO Generate MPI for APP_LOCAL_1 manifest (suit_mpi_APP_LOCAL_1.hex;nordicsemi.com;nRF54H20_sample_app;address=0xe1ed060)
    INFO Generate merged MPI for APP_AREA (suit_mpi_application_merged.hex)
    INFO Generate MPI for RAD_LOCAL_1 manifest (suit_mpi_RAD_LOCAL_1.hex;nordicsemi.com;nRF54H20_sample_rad;address=0xe1ec030)
    INFO Generate merged MPI for RAD_AREA (suit_mpi_radio_merged.hex)
    -- Found nrf-regtool (found suitable version "6.0.0", minimum required is "5.6.0")
    -- Generated UICR hex file: E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/uicr.hex
    -- Generated BICR hex file: E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/bicr.hex
    -- Configuring done
    -- Generating done
    -- Build files have been written to: E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky
    -- Unable to find a VERSION file. Using default values (seq: 1, no semver)
    -- Found blinky manifest template: E:/Misha/NCSDK/nrf/config/suit/templates/nrf54h20/default/v1/app_envelope.yaml.jinja2
    
    -- Found root manifest template: E:/Misha/NCSDK/nrf/config/suit/templates/nrf54h20/default/v1/root_with_binary_nordic_top.yaml.jinja2
    -- Configuring done
    -- Generating done
    -- Build files have been written to: E:/Misha/NCSDK/zephyr/samples/basic/blinky/build
    ←[92m-- west build: building application
    [6/12] Performing build step for 'blinky'
    [4/159] Generating include/generated/version.h
    -- Zephyr version: 3.6.99 (E:/Misha/NCSDK/zephyr), build: v3.6.99-ncs2-433-g3d01dcc251bf
    [159/159] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       36804 B       296 KB     12.14%
                 RAM:        9560 B       256 KB      3.65%
           DMA_RAM21:          0 GB        16 KB      0.00%
       DMA_RAM3x_APP:          40 B         4 KB      0.98%
            IDT_LIST:          0 GB        32 KB      0.00%
    Generating files from E:/Misha/NCSDK/zephyr/samples/basic/blinky/build/blinky/zephyr/zephyr.elf for board: nrf54h20dk
    [12/12] Generating ../zephyr/dfu_suit.zip
    
    (v2.7.99-cs2) e:\Misha\NCSDK\zephyr\samples\basic\blinky> west flash
    -- west flash: rebuilding
    [0/7] Performing build step for 'blinky'
    ninja: no work to do.
    [7/7] Generating ../zephyr/dfu_suit.zip
    -- west flash: using runner nrfutil
    -- runners.nrfutil: reset after flashing requested
    Using board 001051163442
    -- runners.nrfutil: Flashing file: E:\Misha\NCSDK\zephyr\samples\basic\blinky\build\blinky\zephyr\uicr_merged.hex
    -- runners.nrfutil: Programming image
    -- runners.nrfutil: Verifying image
    -- runners.nrfutil: Programming image
    -- runners.nrfutil: Verifying image
    -- runners.nrfutil: Erase
    -- runners.nrfutil: Programming image
    -- runners.nrfutil: Verifying image
    -- runners.nrfutil: Reset
    -- runners.nrfutil: Board with serial number 1051163442 flashed successfully.

  • It seems from the build and flash log that everything executes successfully, so you're saying that the LEDs simply don't blink, correct. Have you done the preliminary steps for setting up your DK. If not, please check out the Getting started guide for the nRF54H20 DK here, as there are some bring-up steps required before the first time you use the DK.

    Best regards,

    Simon

Related