@kennethlimcp, I just read the Spark CLI flash documentation and it is all over the place. It suggests you can flash files to your core that are not .bin! It also seems to suggest that you can flash a directory of files implying it will compile them but a little further down in the text it does say to use spark compile!
I tried “flashing” a directory of files but it does not compile them first. So I am not sure where that description came from and it needs to be rewritten.
Sends a firmware binary, a source file, or a directory of source files, or a known app to your core.
Flashing a directory
You can setup a directory of source files and libraries for your project, and the CLI will use those when compiling remotely. You can also create spark.include and / or a spark.ignore file in that directory that will tell the CLI specifically which files to use or ignore.
Flashing one or more source files
The first part, IMO, is incorrect and should only say “firmware binary and a known app”. The second part is garbage and only applies to the spark compile command. The last part is like the second and not applicable. Any thoughts?