Reflash RAK4631 using RAKDAP

I am trying to flash 2x bricked RAK4631 using RAKDAP.

I followed the quickstart guide:

However, the pyocd pack --i nrf52840 command doesnt work:

> pyocd pack update
0000418 I Updating pack index... [pack_cmd]
Downloading descriptors (1625/1625)
> pyocd pack --i nrf52840
0000497 W No matching devices. Please make sure the pack index is up to date. [pack_cmd]

Any suggestions to resolve this?

Welcome back to the forum @heraldoftech

Try

pyocd pack --i nrf52

Make sure you have internet connection. The package has to be downloaded.

I tried that also with the same result. Internet connectivity ok.

looks like nrf52840 might be built in now:

pyocd list --targets

nrf52840 Nordic Semiconductor NRF52840 builtin

Still trying to flash but not working.

Current result:

Also tried drag and drop the hex file onto the RACDAP1 as described here:
https://forum.rakwireless.com/t/flashing-the-bootloader-using-the-racdap1-with-rak2270/11905

but get the following failure:

error: The interface firmware FAILED to reset/halt the target MCU
type: target

I am connected like this:

Your connections look correct.
The python error message is confusing and I have no idea what it means.
I am not sure what the real problem is.
The DAPlinks are giving me problems sometimes and I have to try 2 or 3 times before it actually works.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.