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

Unable to program nRF52940 PDK via JLINK

I installed the latest JFlash (6.12d) from Segger's site, and it updated the JLink firmware.

However when I try to program the hex files downloaded from www.nordicsemi.com/.../Getting-started-with-the-nRF52840-Preview-Development-Kit

I get a message in JFlash

"Sorry, no valid license for J-Flash found" "J-Link S/N is 683404738"

Edit. I can read back using JLink, and I did select the correct device, I just can't program due to this license issue. I can program by copying hex files to the mass storage drive "JLink", but it would be better if JLink was working (fixed)

  • Hi Roger,

    Have you ever programmed any device by that J-Link SW package installation on that particular machine? I would recommend to stick with Nordic's nRF Tools (or nRFgo Studio if you insist on GUI based tools). If you insist on SEGGER J-Link/J-Flash then there should be "J-Flash Lite" executable installed with the package which is free license (if you don't use it for commercial/manufacturing purposes). It can erase/program/verify HEX and BIN images for given MCUs.

    Cheers Jan

  • @Jan

    Thanks.

    Looks like its just JFlash that does not work.

    I presumed the since JFlash was displaying errors with the license, that it would not be possible to program the board using the JLink interface.

    However, I tried JLink Commander and it works fine, and it was possible to upload via Keil. So I will try a few other IDE's e.g. VisualGDB and Eclipse.

  • Is this your first SEGGER J-Link Lite or J-Link OB board (e.g. first Nordic's Dev Kit)? If not then kindly ignore the rest (as I assume you know what you are doing). If so that would explain the confusion: SEGGER SW is normally sold/licensed with their "full" flashing/debugging probes and if you don't have those then you can use only limited functionality. To make it worse you cannot get "full" license for those "Lite" or "OB" boards (as far as I know) so you can either stay with stripped down SEGGER tools (like J-Flash Lite) or use nRF Tools with their "nrfjprog" command-line flasher or use some integration with IDEs like Keil or use your "full" SEGGER flashing/debugging HW with valid license and attach it to "Debug In" (P25) header (see here).

  • @endnode

    This is the first nRF DevKit board that I've tried to use with the segger tools

    I have an nRF52832 dev kit as well, but I just uploaded using drag and drop to the USB mass storage.

    I'd assumed that the Segger programmer on these boards was fully functional, like STM's Discovery and Nucleo line of boards which have STLink adaptors built in, which are fully functional and not cut down versions.

    I've have used other nRF51 based boards, but not Nordic's DevKit boards, so I always used various other external programmers.

    Looking at JFlash Lite, its so cut down its not worth using, I'll just use JLink Commander instead, (to Flash the SD) as it seems to be fully functional

Related