Photon2 can't downgrade from 5.8.2

Hi,

I upgraded a Photon 2 to 5.8.2 and noticed a strange behaviour. So I wanted to rolllback to test this, and tried to downgrade it to 5.4.0, 5.5.0, 5.6.0, 5.8.0 without success.

Using the online device restore tool to flash tinker, the device gives a SOS Hard fault after reset (one red blink).
This is what I see on the console:

Serial connection closed.  Attempting to reconnect...
Serial monitor opened successfully:
0000002047 [hal] INFO: WiFi off
0000002055 [system.nm] INFO: State changed: NONE -> DISABLED
0000002070 [system.nm] TRACE: Interface 4 power state: DOWN
0000002105 [comm] INFO: channel inited

Serial connection closed.  Attempting to reconnect...
Serial monitor opened successfully:
0000002048 [hal] INFO: WiFi off
0000002057 [system.nm] INFO: State changed: NONE -> DISABLED
0000002071 [system.nm] TRACE: Interface 4 power state: DOWN
0000002107 [comm] INFO: channel inited

I observed it crashing after logging try to connect to... so I removed the wifi creds, but still no luck. This was the log at the time:

Serial connection closed.  Attempting to reconnect...
Serial monitor opened successfully:
0000002284 [hal] INFO: WiFi off
0000002293 [system.nm] INFO: State changed: NONE -> DISABLED
0000002307 [system.nm] TRACE: Interface 4 power state: DOWN
0000002343 [comm] INFO: channel inited
0000002456 [system.nm] INFO: State changed: DISABLED -> IFACE_DOWN
0000002475 [system.nm] INFO: State changed: IFACE_DOWN -> IFACE_REQUEST_UP
0000002495 [net.ifapi] INFO: Netif wl3 state UP
0000002506 [net.rltkncp] TRACE: NCP event 3
0000002508 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_POWERING_UP
0000002510 [system.nm] INFO: State changed: IFACE_REQUEST_UP -> IFACE_UP
0000002516 [system.nm] TRACE: Interface 4 power state changed: POWERING_UP
0000002527 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:04:07:f8
0000002741 [hal] INFO: WiFi on
0000002742 [net.rltkncp] TRACE: NCP event 3
0000002743 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_UP
0000002745 [system.nm] TRACE: Interface 4 power state changed: UP
0000002746 [ncp.rltk.client] INFO: rltkOff
0000002952 [hal] INFO: WiFi off
0000002953 [ncp.rltk.client] INFO: rltkOff done
0000002954 [net.rltkncp] TRACE: NCP event 3
0000002955 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_DOWN
0000002957 [system.nm] TRACE: Interface 4 power state changed: DOWN
0000002968 [hal] INFO: rltk_wlan_set_netif_info: 0, 94:94:4a:04:07:f8
0000003182 [hal] INFO: WiFi on
0000003183 [net.rltkncp] TRACE: NCP event 3
0000003184 [net.rltkncp] TRACE: NCP power state changed: IF_POWER_STATE_UP
0000003186 [system.nm] TRACE: Interface 4 power state changed: UP
0000003187 [ncp.rltk.client] TRACE: NCP state changed: 1
0000003190 [net.rltkncp] TRACE: NCP event 1
0000003193 [ncp.rltk.client] INFO: Try to connect to ssid: myWiFi_SSID

Serial connection closed.  Attempting to reconnect...
Serial monitor opened successfully:

I also tried particle update with no luck:

me@mac % particle update
Updating p2 Askljdh02042028903423490 to latest Device OS version
[███████████████░░░░░░░░░░] 59% | Flashing p2-prebootloader-part1@5.8.0.bin


it gets stuck right there at 59% and resets. When it resets it crashes again.

Any ideas?
Thanks!

I fixed an issue with Device restore DFU and Web device doctor when upgrading or downgrading P2/Photon 2 or M-SoM with Device OS 5.5.0 and later. It was particularly noticeable with 5.8.2.

Not sure why the CLI got stuck flashing p2-prebootloader-part1. You can also use the --target 5.6.0 option for particle update to use a specific version; you could have been running into a USB issue that occurred in 5.8.0.

4 Likes

Your fix worked, thanks!

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