I’m experiencing the same problem today.
Can we help you?
When I flash in Particle Dev, it ignores the project I’m currently working on, and flashes and sends from an older folder. The same code keeps getting sent to the Photon, regardless of whether I add another project file to Particle Dev, or close and reopen Particle Dev.
What OS are you on?
The thing with Particle Dev is, that you have to open the project folder - it does not actually care what file you are working on.
Removing all the other “project folders” from the IDE fixed it. One cannot have more than one project folder open in the Particle Dev at a time. Was not expecting this.
MacOS here.
Yes you can have several project folders, but you explicitly have to select the project folder you are working on.
If you have multiple projects nested inside your selected “root project”/“project home” folder, you’ll have troubles too.
Unfortunately the Windows version of Dev (which I use) has a different menu structure than the Mac version, so I guess you have not got an “Open folder …” menu item, which works fine for a multy project home folder in my setup.
I have “Add Project Folder”, which allows additional folders to be added to Particle Dev, each with an *.ino file.
Using “Open…” doesn’t switch the focus to the new folder, but since the workaround of manually removing all folders except the one I want to compile does, then I’ll stick with that for now.
Thank you for checking back with me! Very appreciated.
I experienced this as well with photon months ago using desktop DEV. That time I solved it by using Web BUILD to flash a simple program - blinker - and that triggered a long delay - firmware update I guess.
After that - desktop dev worked as well.
Just now I started having same problem - DEV reports a successful flash but the code on device is same as prior. I notice I have to delete the "photon_firmware_xxxxxxx.bin file from the directory AND ensure saving the new code before it will update reliably.
Good luck.