hi everyone,
I’m trying to build myself a guitar pedal with Daisy Seed using Keith Shepherd’s great Open Source project.
I’ve got everything to work so far, as the documentation is excellent. Except that when I’m trying to run the software (The documentation is here: DaisySeedProjects/Software/GuitarPedal at main · bkshepherd/DaisySeedProjects · GitHub), I’m getting an error message.
The point where I’m getting an error message is this one:
- While the LED is blinking run “make program-dfu”
when I run “make program-dfu”, I’m getting this:
dfu-util -a 0 -s 0x90040000:leave -D build/guitarpedal.bin -d ,0483:df11
dfu-util 0.10
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2020 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
No such file or directory: Could not open file build/guitarpedal.bin for reading
make: *** [libDaisy/core/Makefile:345: program-dfu] Error 74
It’s probably really obvious, but since I’m not an expert in C++ (I’m planning to program in MaxMSP and only using this rn for testing), I’m a bit at a loss what to do. It seems to be missing a guitarpedal.bin file, but there is none included in the project …
Any help is much appreciated!
You need to run ‘make’ to create the .bin file.
but I ran it … “make program-dfu”. and then I’m getting this.
what am I missing?
you first need to run ‘make’ with no target (it will use the default)
e.g.
make
and then do the ‘make program-dfu’
thanks for getting back. when I do that it throws me this error:
mkdir build
arm-none-eabi-gcc -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DUSE_HAL_DRIVER -DSTM32H750xx -DHSE_VALUE=16000000 -DCORE_CM7 -DSTM32H750IB -DARM_MATH_CM7 -DUSE_FULL_LL_DRIVER -DUSE_DAISYSP_LGPL -DBOOT_APP -include stm32h7xx.h -IlibDaisy -IlibDaisy/src/ -IlibDaisy/src/sys -IlibDaisy/src/usbd -IlibDaisy/src/usbh -IlibDaisy/Drivers/CMSIS_5/CMSIS/Core/Include/ -IlibDaisy/Drivers/CMSIS-DSP/Include -IlibDaisy/Drivers/CMSIS-Device/ST/STM32H7xx/Include -IlibDaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -IlibDaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -IlibDaisy/Middlewares/ST/STM32_USB_Host_Library/Core/Inc -IlibDaisy/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -IlibDaisy/Middlewares/ST/STM32_USB_Host_Library/Class/MIDI/Inc -IlibDaisy/core/ -IDaisySP/Source -IDaisySP/DaisySP-LGPL/Source -IlibDaisy/Middlewares/Third_Party/FatFs/src -I./q/q/q_lib/include -I./q/infra/include -O1 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -Wno-stringop-overflow -g
-ggdb -MMD -MP -MF"build/startup_stm32h750xx.d" -std=gnu11 -Wa,-a,-ad,-alms=build/startup_stm32h750xx.lst libDaisy/core/startup_stm32h750xx.c -o build/startup_stm32h750xx.o
cc1.exe: fatal error: stm32h7xx.h: No such file or directory
compilation terminated.
make: *** [libDaisy/core/Makefile:283: build/startup_stm32h750xx.o] Error 1
Did you follow all the steps here: 1. Setting Up Your Development Environment · electro-smith/DaisyWiki Wiki · GitHub
It seems like you may need to do some more submodule updating:
git submodule update --init --recursive
Hi Mike, thanks for getting back about this.
I set up the whole environment first as described in the official Daisy Tutorials and then as described on Keith’s github page.
I’m on Windows btw.
- put the Daisy in DFU mode
- reset the drivers with Zadiq
- downloaded the Toolchain as described in the tutorials
- set up VSCode as described in the tutorials
- cloned the software using Git Bash (had to separately clone the two libraries DaisySP and libDaisy, as well as the ‘infra’ and ‘q’ folders)
- followed the steps on Keith’s ‘Software’ page:
- List item From the terminal, in the GuitarPedal folder run “make program-boot”
- List item Once this finishes installing the custom boot loader on the Daisy Seed, press the Reset button. The led will temporary blink for about 3 second.
- List item While the LED is blinking run “make program-dfu”
not sure why it’s not working. which submodules do you mean by:
It seems like you may need to do some more submodule updating:
git submodule update --init --recursive
?
still getting this error:
dfu-util -a 0 -s 0x90040000:leave -D build/guitarpedal.bin -d ,0483:df11
dfu-util 0.10
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2020 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util / Tickets
No such file or directory: Could not open file build/guitarpedal.bin for reading
make: *** [libDaisy/core/Makefile:345: program-dfu] Error 74
Daisy uses some submodules from ST, so you would need to do that submodule update in the libDaisy dir.
Also, are you using MINGW64 shell or doing it from VSCode?
You’ll need to get ‘make’ (with no arguments) working first, to build libDaisy (I did it from the command-line), and then build the sample from within VSCode).
Ok thank you for your patience, and sorry, this is all very new to me. it’s a lot at the same time, because I’m not used to these environments. I’m normally only working in the Arduino IDE and MaxMSP.
I’ve successfully (I think) updated the submodules in Git CMD. at least it didn’t throw any errors.
this is what I’m getting when I’m setting the directory to libDaisy and then typing ‘make’ in Git CMD:
mkdir -p build/Drivers/Patched/STM32H7xx_HAL_Driver/Src
The syntax of the command is incorrect.
make: *** [Makefile:368: build/Drivers/Patched/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_sdmmc.o] Error 1
do I need to install MINGW64?
had to re-install everything and manually clone all submodules. now it works! thanks everyone for helping
1 Like