Bricked 4631, trying to fix with openocd

I believe i’ve hard bricked my RAK4630. Its on a RAK19003 WisBlock Base Board; dmesg has it as a RAK4631. Have had it over a yeaer never did anything with it until now. It always booted to an AT cli, and AT+VER=? gives: RUI_BOOT_0.7_nRF52840

I could always get to [57967.091220] usb 1-4: Product: Open DFU Bootloader
by using AT+BOOT

Anyhow due to my stupidity and screwing up an attempted flash, its broke. Dmesg no longer does anything when its plugged in. single/double RST does nothing either. Red power led is always on. Pretty sure its hosed.

Can I fix it with my Flipper0 and DAP Link? AI had me wire up like so:

  • Flipper Pin 10 (SWCLK) $\rightarrow$ SWDCLK pad
  • Flipper Pin 12 (SWDIO) $\rightarrow$ SWDIO pad
  • Flipper Pin 8 (GND) $\rightarrow$ GND pad

And Im trying to use openocd, with the hex file I got from RAK, but:

$ openocd -f interface/cmsis-dap.cfg -f target/nrf52.cfg -c "adapter speed 50; init; reset halt; nrf52 mass_erase; program firmware-rak4631-2.7.26.54e0d8d.hex verify reset; exit"
Open On-Chip Debugger 0.12.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : Using CMSIS-DAPv2 interface with VID:PID=0x0483:0x5740, serial=DAP_Ameli93e
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: JTAG supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Serial# = DAP_Ameli93e
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 0 nTRST = 1 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 50 kHz
Error: Error connecting DP: cannot read IDR

Ive tried 50, 200, 1000 for speed, all fail. On the Flipper0 DAP link screen I see activity when that ocd command goes though.

Am I doing this right? What else to try?

FML (again)
as is my custom, as soon as I ask for help, i figure it out.
my F0 was configured for pins 2,3 instead of the actual pins that are labeled SWC and SIO.

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