I am trying to compile firmware for Electron. My problem is that even though my code compiles successfully, and is flashed to my Electron with dfu-util successfully, it is not evident that the code has been updated.
This can happen when the version of the system firmware (parts 1 & 2) does not agree with the version required by the app you are compiling for the user firmware.
If you put the device in listening mode and type “v” you can see the system version.
No latest should correspond to 0.5.0 right now (but develop is ahead).
Are you sure you dfu-util address range is correct? That looks like the address for the Photon app area but I think Electron is different (and I see that doc section is blank for Electron!).
I don’t have an Electron handy to test right now but I would run the CLI command and pay attention to the exact dfu-util command to be sure.
Thanks. I read this in the documentation and I use it in my script for recompiling the system firmware. When compiling the user firmware I prefer using my own method.
If you’re only rebuilding your own user app firmware, and you have previously built all, you can save a significant amount of build time by building from the firmware/main directory. You use the same make options as normal, and you can either flash the resulting binary or use the program-dfu make option.