Programming external custom board with nrf52832 DK

Hi all,

I have a custom board running on nrf52840. I need to flash the custom board with the NRF52832 DK. But I am running into some issues. the development is at early stages and there are too many failure points and variables. So I just need to be sure at every step what each error means.

I tried recovering using 'nrfjprog --recover' . It ave the same error. I am attaching the log of the recover operation. 

One question I have is about the connection between the target board and the DK. I have not connected the VDD_nrf (pin #1 on P20) or the VDD (pin #2 on p20) since my target board is powered by an external USB source. Is it necessary that I should connect these ? i saw a lot of suggested schematics between the target and the DK but i do not know which one of these to accept. Can you recommend a connection that works ?

Thank you

Parents
  • I'm seeing a similar issue but with nRF52840 DK 3.0.0 specifically. Always happens if I try to program the target which isnt powered on. The DK just enters this broken state which can only be fixed by flashing the target with a dedicated debugger.

    Also happens when my target is battery powered for some reason. Previous DK board worked just fine, didn't have this issue.

    I've only found that it has something to do with how nrfjprog erases the memory. When the J-link reports a failed read, for example it can't check for readback protection, the erase command in nrfjprog just ignores this and tries to continue with the erasing which leads me to believe this is some bug on Nordic's side.

Reply
  • I'm seeing a similar issue but with nRF52840 DK 3.0.0 specifically. Always happens if I try to program the target which isnt powered on. The DK just enters this broken state which can only be fixed by flashing the target with a dedicated debugger.

    Also happens when my target is battery powered for some reason. Previous DK board worked just fine, didn't have this issue.

    I've only found that it has something to do with how nrfjprog erases the memory. When the J-link reports a failed read, for example it can't check for readback protection, the erase command in nrfjprog just ignores this and tries to continue with the erasing which leads me to believe this is some bug on Nordic's side.

Children
No Data
Related