Google isn’t coming back with a lot on Spark Core regarding those two topics, and I apologize if this has been asked and answered already.
Do I need to force string literals into FLASH with the F() macro, or does SparkCore’s compiler do that for me. I tried messing about with the compiler’s feedback, it seems like it doesn’t matter if I use F() of not.
Is there a PROGMEM functionality? Compiler complains but I thought it may be syntax. Cannot find in the IDE.
thanks for your assistance and patience with a noob coming from the arduino paradigm.
@ScruffR, I believe the F() macro is already included in the production environment, as is possibley PROGMEM. For sure they are included in the locally compilable firmware master repo.
@peekay123, where did you find a #define PROGMEM?
I only found it in unit-test.h which I wouldn’t have seen as inherent part of the actual firmware.
And when @BulldogLowell mentioned PROGMEM I didn’t only think of this keyword but also about the Arduino functions/makros to access PROGMEM variables.
Edit: I just noticed production environmen in your post
But even so where could one find what’s already there and what not. That would be some useful info to place in @harrisonhjones ’ porting hint repo.
(@Dave ???)
@ScruffR, I did not think about the thread visibility!
As for PROGMEM, it needs to be defined as null. The code that it applies to, however, must be specified as “const” to go to flash, as @bko pointed out.