I cloned the spark repository and checked out the branch develop-0.5.x. I put the photon in dfu-util mode and then in firmware/main executed this command.
make clean all -s PLATFORM=photon COMPILE_LTO=n APP=tinker program-dfu MODULAR=n
which is monolithic build. It took a while to flash the code. To confirm my actions I kept the device in listening mode and run particle serial identify.
The firmware version changed to 0.5.3 as expected but the firmware version listed under my device in the particle IDE is still 0.6.1. Maybe it takes time so I checked after a few minutes and it’s still 0.6.1.
Now I wrote a blink LED app and tried:
particle flash --target 0.5.3 myDevice blink.ino
Flash device OK: Flash requires modules not present on device.
What modules am I missing?