I’m playing with the FreeRTOS software timers and I can’t seem to get an LED to turn on after 10 seconds. Am I missing an #include? How did this verify/compile?
@1: Other types are not hilighted blue in Build either, so that’s no indication for a problem.
The docs hilighting is a different one to Build or Dev - but I agree that the keyword list for Build could do with some updates - on the other hand a replacement is in the works, so I guess this won’t happen and we’ll have to wait for IDE 2.0.
BTW, if you post your code as text instead of an image, it’d save us the hassle of retyping it
Update:
Tested with my Photon @ 0.5.3 and it works as expected
I think I found the problem. My code isn’t actually loading successfully over serial since I updated to v0.5.3. I can load Tinker OTA but if I load something else first and then tinker over serial it simply is not recognized as Tinker in the app - even though I’m receiving a “Flash Success!” message.
The same is true of the test apps we posted on this thread. They work when loaded OTA but not serial.
That is most likely because it’s an incompatible binary.
If you try flashing via
particle flash --usb firmware.bin
You’ll get better feedback about the possible reason.
You can also try
particle binary inspect firmware.bin
With that you should get something like this
C:\Temp\dmy>particle binary inspect firmware_053.bin
firmware_053.bin
CRC is ok (bbe9b3bd)
Compiled for electron
This is an application module number 1 at version 4
It depends on a system module number 2 at version 21