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

Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4) Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)

Hi, I cant get access to my custom nrf52840 board after I click "Erase all" in "Programmer" in "nRF Connect for Desktop". This custom board has been working with me for at least 3 months with the same connection, but suddenly after I clicked "Erase all" last Thursday, I felt that it didnt fully erase the chip but after two seconds it popped up with error mentioned in the title and I cant access it anymore. I searched all the related issues in the forum but none helps. I can get access to the nrf52DK board if I disconnect all the connections with the custom nrf52840 board which means the jlinkob in the nrf52DK is good. Please help to figure it out. Thanks.

Basic info: 

System: Windows 10 Pro

nRF Connect for Desktop v3.7.0 Windows 64bit -> Programmer v1.4.11

nrfjprog version: 10.13.0

JLinkARM.dll version: 7.50a

Setup:

Issues:

I tried nrfjprog --recover and nrfjprog --reset but in both cases got 

ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

I tried Jlink commander also:

Best

/CJ

Parents
  • Hi

    Thank you for the clarification. I think I see what has happened here now.

    What are you supplying from VDD except just the nRF52840? By default, the REG0 regulator is set to 1V8 by default, so if you supply something that needs higher voltage you need to edit the UICR register by default. After an erase it will go to the default 1V8. This is just about the only thing that would cause an --eraseall to brick the board. You can read more about this in the "word of caution" section in the nRF52840 Dongle programming tutorial.

    Best regards,

    Simon

Reply
  • Hi

    Thank you for the clarification. I think I see what has happened here now.

    What are you supplying from VDD except just the nRF52840? By default, the REG0 regulator is set to 1V8 by default, so if you supply something that needs higher voltage you need to edit the UICR register by default. After an erase it will go to the default 1V8. This is just about the only thing that would cause an --eraseall to brick the board. You can read more about this in the "word of caution" section in the nRF52840 Dongle programming tutorial.

    Best regards,

    Simon

Children
  • Thanks, this is it! 

    My custom nRF52840 PCB is configured in high voltage mode also, same as nrf52840 Dongle.

    Luckily I managed to find a "VDD OUT" on my PCB, so by connecting nrf52DK VDD to my PCB "VDD OUT". I was able to access the board again.

    Does this "Erase all" command in "nRF Connect v3.7.0" involves a "reset" automatically? I dont want the UICR to be erased but I need to use "Erase & write" to test the release version of firmware with the PCB for mass production later which only provide me VDDH, GND, SWCLK, SWDIO. What should I do?

    Best

    /CJ

Related