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

nRF52840-Dongle USB DFU problem.

Hello

    I want to flash my simple coap server code in nRF52840-Dongle using USB DFU mode with nRFConnect but I did not find COMPORT/ Any Jlink Device after put donge in USB DFU mode. I want to inform you that, accidentally UICR was erased and I need secure bootloader HEX file for Dongle. I also want to know that problem is in Hardware or software because when I am applying 5V to VBUS pin It will not give 3V at D+ and D- pins and internal buck regulator output is 1.8V coming.

Please provide best solution. I need to create openthread mesh network for my application as early as possible because I am working on a sharp deadline project.

Best Regards,

Hinal Tailor

Parents
  • Hi Hinal,

    I want to inform you that, accidentally UICR was erased and I need secure bootloader HEX file for Dongle. I also want to know that problem is in Hardware or software because when I am applying 5V to VBUS pin It will not give 3V at D+ and D- pins and internal buck regulator output is 1.8V coming.

    At least two things happen when you erase the UICR:

    1. The bootloader start address is removed (though also the bootloader and MBR so that is not a problem in itself).
    2. The REGOUT0 register that controls the output voltage out of Reg 0 is reset to the default value which is 1.8V.

    So, you need to program the MBR and bootloader and UICR again. If you are able to use SWD using a J-Link Pro or similar, then you can get the hex file from the Revert to production bootloader section in the nRF52840 Dongle programming tutorial program that and you should be good after a reset. If you are not able to program via SWD due to the low VDD voltage you need to make some HW adjustments first, as described under Recover after an accidental UICR erase in the same tutorial.

    Please provide best solution. I need to create openthread mesh network for my application as early as possible because I am working on a sharp deadline project.

    Please create a separate question for this as it is not directly related to the programming issue (keeping separate questions in separate threads makes it easier to maintain focus).

    Einar

Reply
  • Hi Hinal,

    I want to inform you that, accidentally UICR was erased and I need secure bootloader HEX file for Dongle. I also want to know that problem is in Hardware or software because when I am applying 5V to VBUS pin It will not give 3V at D+ and D- pins and internal buck regulator output is 1.8V coming.

    At least two things happen when you erase the UICR:

    1. The bootloader start address is removed (though also the bootloader and MBR so that is not a problem in itself).
    2. The REGOUT0 register that controls the output voltage out of Reg 0 is reset to the default value which is 1.8V.

    So, you need to program the MBR and bootloader and UICR again. If you are able to use SWD using a J-Link Pro or similar, then you can get the hex file from the Revert to production bootloader section in the nRF52840 Dongle programming tutorial program that and you should be good after a reset. If you are not able to program via SWD due to the low VDD voltage you need to make some HW adjustments first, as described under Recover after an accidental UICR erase in the same tutorial.

    Please provide best solution. I need to create openthread mesh network for my application as early as possible because I am working on a sharp deadline project.

    Please create a separate question for this as it is not directly related to the programming issue (keeping separate questions in separate threads makes it easier to maintain focus).

    Einar

Children
Related