Hi Everyone,
I have recently started dabbling into embedded projects with first working on an adapter for a i2c based controller and adding bluetooth support using one of the seeed nrf54l15 boards to get started.
I modified the hog.c/h file from the bluetooth sample and now I can no longer connect to the device or it shows up in windows at all.
The bluetooth connection still works and Im able to connect to do what I could with the code I had so far.
Ive tried following these older un-bricking threads and no luck, I assume mainly because the only ones ive found on this forum are for the arduino boards.
I tried running this command
C:\OpenOCD-20260121-0.12.0\bin\openocd.exe -f interface/stlink.cfg -c “transport select swd” -f target/nordic/nrf54l.cfg -c init -c “reset init” -c halt -c “nrf5 mass_erase” -c “program firmware.hex verify” -c reset -c exit\
Warn : Transport “swd” was already selected
Info : STLINK V2J37S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.238477
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : SWD DPIDR 0x6ba02477
Error: [nrf54l.cpu] Examination failed
Warn : target nrf54l.cpu examination failed
Error: [nrf54l.aux] Examination failed
Warn : target nrf54l.aux examination failed
Info : [nrf54l.cpu] starting gdb server on 3333
Info : Listening on port 3333 for gdb connections
Info : [nrf54l.aux] gdb port disabled
Info : [nrf54l.cpu] AP write error, reset will not halt
I noticed the factory_reset.bat detects my stlink but I get this error:
.\factory_reset.bat
Reusing existing virtual environment.
Activating virtual environment…
Dependencies are already installed.
2026-02-16 18:54:45,031 [INFO] Auto-selected single probe: 000000000000000000000001 (STM32 STLink)
2026-02-16 18:54:45,031 [INFO] Attempting mass erase (will unlock if protected)…
0001053 E Error reading AP#0 IDR: STLink error (5): No device connected [discovery]
0001056 E Error reading AP#1 IDR: STLink error (5): No device connected [discovery]
0001060 C Error: 0 [main]
2026-02-16 18:54:46,210 [WARNING] Mass erase failed, try standard erase…
0001038 E Error reading AP#0 IDR: STLink error (5): No device connected [discovery]
0001041 E Error reading AP#1 IDR: STLink error (5): No device connected [discovery]
0001048 C Error: 0 [main]
2026-02-16 18:54:47,375 [ERROR] Standard erase after mass failure also failed.