Hi everyone,
I’m new to Daisy / C++ / dev environments / embedded programming (though experienced with Pd). Whilst there’s various tutorials on getting the most basic blink patches working with things like VS Code (see the Electro-Smith YouTube channel), when one runs into problems it feels almost impossible to know what is going on and what to look for for help online.
This is focusing on developing for Daisy in C++, right at the most basic level of how to get from C++ code in a .cpp file to a flashed Daisy (seed, patch etc), in this instance using Mac Terminal.
So say we have the DaisyExamples folder freshly downloaded onto our computer. This contains various examples for different Daisy boards, but also libraries (libdaisy and daisysp - are there others?). From here I can open terminal and change the working directory to an example such as Blink in DaisyExamples/seed. As there is already a makefile file, I can type ‘make’ into the terminal, which will do it’s thing a create a new directory called ‘build’. Within this directory we have a bunch of new files:
Blink.d
Blink.lst
Blink.map
Blink.o
startup_stm32h750xx.d
startup_stm32h750xx.lst
startup_stm32h750xx.o
What are these files and what do we do with them?
In my brief experience with VS Code, I could run the ‘task build_and_program_dfu’, so curious as to what the process is outside of VS Code from the terminal. I’ve seen dfu-util mentioned in places, but didn’t get very far trying to tie it all together!
(As a side note, I first tried flashing the seed with the examples with VS Code, but ran into a wall when using examples where the .cpp file had #include “daisy_seed.h” and #include “daisysp.h” at the top.