VS Code error: 'make'" failed to launch (exit code: 2)

I am getting this error when I try to run ‘task build_all’ with the Blink.cpp file in VS Code.

this is the output in the Terminal:

> Executing task: make <

make: *** No targets specified and no makefile found.  Stop.
The terminal process "zsh '-c', 'make'" failed to launch (exit code: 2).

Terminal will be reused by tasks, press any key to close it.

Really stuck, I followed the instruction on the wiki, toolchain is installed, latest VS Code, Java installed.

You’re probably in the wrong folder. In vscode choose File > Open Folder and pick the Blink folder.
You should be able to run the task successfully then.

It’s a bit of a weird setup but the DaisyExamples repo is a VS Code project, and each example is its own project as well. So to flash a specific example you need to open that project rather than the global one from the repo.

1 Like