The terminal process "C:\Users\R.particle\toolchains\buildtools\1.1.1\bin\bash.exe '-c', 'make -f 'C:\Users\R.particle\toolchains\buildscripts\1.15.0\Makefile' flash-all -s'" terminated with exit code: 2.
Press any key to close the terminal.
I have seen the error reported in July. Is there a fix? Thanks
I would start from the download on the Particle machine learning page, which removes the unnecessary files that are causing that error while compiling locally under Windows.
Then, if you want to train and substitute your own model, export the project from Edge Impulse but only replace the src/tflite-model directory, not the whole project.
Hi Rick, I have configured Ubuntu, installed VSCode, installed the Particle Workbench, installed the PDA mic library, installed the missing libarchive-zip-perl but still getting Arguments list too long:
The terminal process "/bin/bash '-c', 'make -f '/home/lubuntu/.particle/toolchains/buildscripts/1.15.0/Makefile' flash-all -s'" terminated with exit code: 2.
Oh, I didn't realize that you were using the Keyword_keyword_spotting_inferencing model. That explains why you got the errors just substituting the tflite-model.
I've never tested that model, but it does seem like it must include more files which exceed the limits for Linux bash, which I have never seen occur before.
We have a tool to trim out unnecessary files, but this is an unusual case because the tool relies on being able to build successfully once to generate the linker map. I've always been able to build under Linux in the past.