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

KEIL WILL NOT FLASH TO MY NRF52840 DONGLE

I AM AT THE END OF MY SANITY!!!

I have tried everything. SEGGER, Keil, installed J-link like 5 times, Python, nRFgo, nRF Connect for Desktop, nRF5x Command Line Tools... EVERYTHING!!!

The *** can not be connected no matter what. This is what I get when i launch J-link.

When I want to flash in Keil-lite I get this:

The connect tool works I guess. It finds the dongle, but when i paste the .hex file (blinky) it cannot find the dongle anymore. The LED2 is blinking, but when i put in the dongle via USB the connect programs it and then nothing... until the restart goes '1'.

CAN SOMEONE FOR THE LOVE OF GOD TELL ME HOW TO SET UP THE *** SO I CAN PROGRAM HIM IN KEIL.

  • I forgot to mention, when i put in the dongle, windows does not recognize it as a Jlink device in the explorer. The whole 9 page (http://infocenter.nordicsemi.com/pdf/getting_started_keil.pdf) does not happen for me.

  • For more information the nRFgo studio shows me this. The drivers installed are the ones when the dongle is in bootloader mode.

  • Hi.

    I think you have misunderstood how the nRF52840 is to be used.

    This is what I get when i launch J-link.

    The reason you are getting an error when trying to connect to the J-Link is that there isn't one on the dongle. There isn't any OB J-Link like on the Development kits. 
    You won't be able to use Keil to program the Dongle like you can with the Development kit.

    _________________

    Programming the dongle:
    The nRF52840 Dongle can be programmed through the built-in USB bootloader.

    Insert the nRF52840 Dongle in a USB port on your computer.
    The status light (LD2) should start pulsing red, indicating that the Dongle is powered up and is in bootloader mode.
    After a few seconds, the computer will recognize the Dongle as a USB composite device. The driver needed for the nRF52840 USB DFU feature is also installed.

    To program the Dongle, it must be in bootloader mode.
    The Dongle can be made to enter bootloader mode in one of the two ways:

    * Trigger the nRF52840 USB DFU Endpoint.
    * For Dongles with applications missing the USB DFU endpoint, press the RESET button.

    When the nRF52840 Dongle has entered the bootloader mode, LD2 pulses red. The Dongle is now ready for programming.
    If you want to upload a custom firmware to the Dongle, you can do this by using the dedicated Programmer programming app, or nrfutil.

    More information in the nRF52840 Dongle User Guide.

    We also have a blog-post that you should take a look at.
    You should be able to find all the information you need there:

    nRF52840 Dongle Programming Tutorial

    Best regards,
    Joakim.

  • So why is Keil and SEGGER listed as a supported development app, if I can not use it? I want to create a code, a code I then wish to program into a custom made circuit, that has the nRF52840 transciver. I am willing to bet my life that my custom circuit will require me to prograrm it trough Keil/SEGGER. I must work with Keil or SEGGER, but for now my dongle will not work with either.

  • Votan said:
    So why is Keil and SEGGER listed as a supported development app, if I can not use it?

     Sorry, maybe I wasn't clear.
    Keil / SEGGER can be used as a part of the development process.
    You can use Keil / SEGGER to build and develop applications for the dongle, but not to upload any firmware to the dongle.

    As stated in the nRF52840 Dongle User Guide:
    SES is needed for building application examples for the Dongle. It can be used free of charge with nRF devices.
    If you want to upload a custom firmware to the Dongle, you can do this by using the dedicated Programmer programming app, or nrfutil.

    Best regards.

Related