During the early stages of product development we are switching from the Web IDE to the Particle Workbench within VS Code. I am now using the command, Particle Cloud compile and then Particle flash --local .\boron_firmware_###, with the ### represents the numbers the compiler assigns to the bin file.
Currently I have an issue where a .cpp file is autogenerated from the ino file. This often results in a successful binary upload to the board but essentially an empty loop(). Once I delete .cpp files from the parent and src folders, my BIN file compiles correctly.
I am using a Boron with VS Code with device OS 5.6.0.
I would like to correct the root cause, and has caused me two full days of developer debugging.
Thank you., why does this happen?
-Mike
Hi @ScruffR ,
Interesting you mention that, I deleted all the .cpp files in the same directory and subdirectories. After these were deleted there were no issues.
Is it basically a one or the other type of scenario?
AFAICT when you have a .ino file each time you build locally the local preprocessor creates a .cpp file from that and the local compiler will only deal with this file and not touch the .ino file, but you will end up with both in your file structure.
On the other hand, when you start off from a .cpp file there is no need to back-process that into an .ino and so you will not get one.