Cannot flash Thingy91x

Dear Nordic,

I have a Thingy91x. I tried flashing the nRF9151 SoC on the device but ran into error messages. I realized that the nRF53/nRF91 switch was in the nRF53 position. After moving the switch back to the nRF91 position I was able to flash the nRF9151 SoC. Afterwards, however, I discovered that serial port access to the device stopped working. I suspect that I inadvertently overwrite the nRF53 code when the switch was in the wrong position. When I try to flash the nRF53 modem firmware on the device I get error messages.  I've tried lots of commands to try and recover the device but have been unsuccessful. Below are the outputs of running the commands. I'm doing this all on an Ubuntu 24.04.2 machine.

peter@peter-HP-ProBook-450-G3:~$ nrfjprog --version
nrfjprog version: 10.24.2 external
JLinkARM.dll version: 8.14


peter@peter-HP-ProBook-450-G3:~$ nrfjprog --deviceversion
960042162 - NRF5340_xxAA_REV1


peter@peter-HP-ProBook-450-G3:~$ nrfjprog --recover -f nrf52
Recovering device. This operation might take 30s.
[error] [ Client] - Encountered error -21: Command recover executed for 1 milliseconds with result -21
[error] [ Worker] - Encountered unexpected debug port ID 6, expected 2
ERROR: Recover failed. Please make sure that the correct device family is given
ERROR: and try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.


peter@peter-HP-ProBook-450-G3:~$ nrfjprog --eraseall
[error] [ Client] - Encountered error -90: Command read_memory_descriptors executed for 1 milliseconds with result -90
[error] [ Worker] - Can't read memory descriptors, ap-protection is enabled.
ERROR: The operation attempted is unavailable due to readback protection in
ERROR: your device. Please use --recover to unlock the device.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.

peter@peter-HP-ProBook-450-G3:~$ nrfutil --version
nrfutil 8.0.0 (54d8087 2025-01-07)
commit-hash: 54d8087a38b73b6e56942fb1b024b62365f06731
commit-date: 2025-01-07
host: x86_64-unknown-linux-gnu
build-timestamp: 2025-01-07T14:26:42.070728557Z
classification: nrf-external

peter@peter-HP-ProBook-450-G3:~$ nrfutil device recover
X Failed to recover 960042162, Device error: The device is both erase protected and AHB-AP protected, it cannot be recovered
Error: One or more recover tasks failed:
* 960042162: Device error: The device is both erase protected and AHB-AP protected, it cannot be recovered (Generic)

Can you offer some guidance on how to recover the device?

Thank you.

Peter



Related