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

Unable to run Zephyr programs on nRF52840DK.

Hi,

I am unable to get any programs using Zephyr to run on an nRF52840DK.

  • I have tried using the latest DAPlink (from GitHub) and JLink firmware (from Segger) as well as the latest firmware binary available from https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-DK/Download.
  • I can successfully flash binaries of Mbed OS or Zephyr using PyOCD or drag-and-drop with all firmwares, as well as nrfjprog when using JLink firmware (nrfjprog does not detect the board with other firmware)
  • With DAPlink firmware LED5 will blink 3 times, and it also blinks whenever serial data is sent to the board
  • With JLink firmware, LED5 is lit almost constantly (it blinks off for a fraction of a second about once per second).
  • With MBED firmware, LED5 is lit constantly
  • With all firmwares, there is no serial output from Zephyr programs. If I try to control LEDs programmatically there is no effect.

I have experienced the same issue on 3x nRF52840DKs which I believe came in a single shipment. As mentioned I am able to reflash the firmware and run mbed OS programs at will.

Parents
  • Are you using NCS (which contains a downstream Zephyr version) or upstream Zephyr?

    Can you try the following and report if it works or not?

    • 'west flash' command
      • cd <ncs location>/zephyr/samples/basic/blinky
      • Connect nrf52840 DK to computer and turn on iton
      • west build -b nrf52840dk_nrf52840 && west flash
        • Now LED1 should blink
      • 'nrfjprog --program' command
        • cd <ncs location>/zephyr/samples/basic/blinky/build/zephyr
        • nrfjprog --eraseall
          • Make sure LED1 stops blinking
        • nrfjprog --program zephyr.hex --sectorerase
        • nrfjprog --reset 
          • Now LED1 should blink

    Best regards,

    Simon

Reply
  • Are you using NCS (which contains a downstream Zephyr version) or upstream Zephyr?

    Can you try the following and report if it works or not?

    • 'west flash' command
      • cd <ncs location>/zephyr/samples/basic/blinky
      • Connect nrf52840 DK to computer and turn on iton
      • west build -b nrf52840dk_nrf52840 && west flash
        • Now LED1 should blink
      • 'nrfjprog --program' command
        • cd <ncs location>/zephyr/samples/basic/blinky/build/zephyr
        • nrfjprog --eraseall
          • Make sure LED1 stops blinking
        • nrfjprog --program zephyr.hex --sectorerase
        • nrfjprog --reset 
          • Now LED1 should blink

    Best regards,

    Simon

Children
No Data
Related