Basic environment setup ERROR - 'make'" failed to launch (exit code: 2)

Hello,

I’m simply trying to flash BLINK to the daisy in VS Code and get this:

"make: *** No targets specified and no makefile found. Stop.

  • The terminal process “/bin/zsh ‘-l’, ‘-c’, ‘make’” failed to launch (exit code: 2).
  • Terminal will be reused by tasks, press any key to close it. "

I have followed all the steps, and the “DaisyExamples” folder is on my desktop.

I did File > Open Folder > Blink
Daisy is in boot mode.

I don’t understand what I am doing wrong as I have changed nothing in the code, and watched the setup video and github instructions multiple times.


Project Name

TARGET = Blink

Sources

CPP_SOURCES = Blink.cpp

Library Locations

LIBDAISY_DIR = …/…/libDaisy

DAISYSP_DIR = …/…/DaisySP

Core location, and generic makefile.

SYSTEM_FILES_DIR = $(LIBDAISY_DIR)/core

include $(SYSTEM_FILES_DIR)/Makefile

#include “daisy_seed.h”

// Use the daisy namespace to prevent having to type
// daisy:: before all libdaisy functions
using namespace daisy;

// Declare a DaisySeed object called hardware
DaisySeed hardware;

int main(void)
{
// Declare a variable to store the state we want to set for the LED.
bool led_state;
led_state = true;

// Configure and Initialize the Daisy Seed
// These are separate to allow reconfiguration of any of the internal
// components before initialization.
hardware.Configure();
hardware.Init();

// Loop forever
for(;;)
{
    // Set the onboard LED
    hardware.SetLed(led_state);

    // Toggle the LED state for the next time around.
    led_state = !led_state;

    // Wait 1000ms
    System::Delay(1000);
}

}

any help is appreciated.
Thanks

Did you install the Daisy Toolchain?

Yes.

I have done every step in the github instructions, redid the same steps with the video.

I should add that flashing blink from the web programmer works fine.
Its not a hardware problem.

Maybe you have done everything right, maybe not. Many people have trouble at first, but not all.
First off, what platform? Windows? Mac? If Mac, Intel, or Apple silicon? OS version?

Apple Mac M1, OSX Sonoma 14.6.1

Works on my MacBook Air M1, MacOS 14.5, waiting software update to finish, but I doubt that’s causing your problem.

Have you tried building and uploading from the command line?
…/Blink> make && make program-dfu

If that works, it says the problem is just in the VSCode setup.

EDIT: yes, still working with 14.6.1

Trying it in terminal did not initially work.

Then I built libDaisy and DaisySP, and it did work after that.

I went back to VScode, and tried task build all + task build and program dfu.

It did not work.

I ran the problem through ChatGPT, and it suggested I open VScode from the blink directory in terminal.

cd ~/Desktop/DaisyExamples/seed/Blink

code .

This opened a new VScode window, and when I did it from there it worked.

I’m not sure I understand as when I opened VScode from applications I did do File > Open Folder

And I selected the blink folder in the DaisyExamples folder on my desktop. (DaisyExamples > seed > blink)

hmm?

I rarely use VS Code, so I’ve got no suggestions.

As explained above, if I open VScode from applications and then open folder > path to blink, it does not work, meaning i get the same error message as my original post “The terminal process “/bin/zsh ‘-l’, ‘-c’, ‘make’” failed to launch (exit code: 2).”

If I open VScode in terminal, from blink folder.
"cd ~/Desktop/DaisyExamples/seed/Blink

code ."

blink will upload to daisy.

Sorry for the confusion.

Thanks for your time, and the less agressive edit on this message.

have a nice night.