I figured it was time to play around with my own bootloader, just for fun, since I don't have a need as such.
However, after cloning and attempting to build the source ...
$ git clone https://github.com/spark/bootloader.git
$ cd bootloader/build
$ make clean
$ make
... I end up with a compile error ...
../src/main.c: In function 'main':
../src/main.c:143:16: error: 'Factory_Reset_SysFlag' undeclared (first use in this function)
if (0xAAAA == Factory_Reset_SysFlag)
^
I'm sorry capt'n, but I canny find a single reference to Factory_Reset_SysFlag anywhere on the ship!
$ cd ~/sparkcore
$ ls -1F
bootloader/
core-common-lib/
core-communication-lib/
core-dryertimer/
core-firmware/
gcc-arm-none-eabi-4_8-2013q4/
shields/
spark-arm@
$ find . -type f -exec grep -ln Factory_Reset_SysFlag {} \;
./bootloader/src/main.c
$ _
(except in bootloader/main.c, of course)
Nor in the universe captain!
Google Result: Your search - spark Factory_Reset_SysFlag - did not match any documents.