I flashed my Photon with user code targeting 0.7.0-rc.3, and due to issues with the app-hash not working properly in some cases (Weird flash compile Issues, not seeing app-hash event?), I am trying to roll the Photon back to 0.6.2
I used the following commands (i read somewhere to do it in reverse order, but I also tried it part1 then part2):
dfu-util -d 2b04:d006 -a 0 -s 0x8060000 -D system-part2-0.6.2-photon.bin
dfu-util -d 2b04:d006 -a 0 -s 0x8020000:leave -D system-part1-0.6.2-photon.bin
The update took and it reboots… but it just boots up in to safe-mode.
I can verify the current version is now 0.6.2, but all it does is boot to safe-mode. I tried flashing my user code to it again targeting 0.6.2 now, and it doesn’t take… It just reboots back into safe-mode again.
I am stuck- any suggestions?
(ps): I asssumed the dfu-util 0x8020000 is for part1 and 0x8060000 is for part2 - I couldn’t find any good documentation explaining these parameters. So maybe those are backwards? Not sure. Bottom line, I need to revert back to 0.6.2 and its stuck in safemode.
particle flash --usb checks the compatibility of the binary and chooses the right location from the binary itself.
So less risk of using wrong binaries or wrong addresses.
particle flash --serial system-part2-0.6.2-photon.bin
! PROTIP: Hold the SETUP button on your device until it blinks blue!
? Press ENTER when your device is blinking BLUE
sending file: system-part2-0.6.2-photon.bin
I said --usb for the system parts and --serial for the bootloader. --usb requires DFU Mode (blinking yellow) --serial requires Listening Mode (blinking blue)
Thanks, I will try that the bootloeader with --serial. However, that is NOT what you said. (Quote above). So are you still saying I need to do system part 2 with --usb (reset), then bootloader with --serial (reset), then system part 1 with --usb (reset)? You never confirmed the order.