electro-smith / DaisyWiki

Wiki for the Daisy ecosystem. Click the link to the right to get started ->
https://github.com/electro-smith/DaisyWiki/wiki
MIT License
237 stars 12 forks source link

arm-none-eabi-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory #23

Closed seanwayland closed 3 years ago

seanwayland commented 3 years ago

Working on this https://github.com/electro-smith/DaisyWiki/wiki/1.-Setting-Up-Your-Development-Environment

I am at this step 4. Run the Blink Example and running into some errors . My dev environment is this.

  Model Name:   Mac Pro
  Model Identifier: MacPro6,1
  Processor Name:   Quad-Core Intel Xeon E5
  Processor Speed:  3.7 GHz

VSCODE Version: 1.56.2

It looks like I need a gcc compiler that targets the processor.

I am going to try this :

https://brewinstall.org/install-gcc-arm-embedded-mac-osx/

I hope it's cool to create an issue I would like to keep track of it all here.

Executing task: make clean; make <

rm -fR build 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 -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -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 arm-none-eabi-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory compilation terminated. make: *** [build/startup_stm32h750xx.o] Error 1 The terminal process "/bin/bash '-c', 'make clean; make'" terminated with exit code: 2.

seanwayland commented 3 years ago

GCC seems to be installed for that ARM processor


Warning: Cask 'gcc-arm-embedded' is already installed.

To re-install gcc-arm-embedded, run:
  brew reinstall gcc-arm-embedded```  hmmm that didn't fix it looks like I need to add gcc to the path or something 
seanwayland commented 3 years ago
(base) seans-Mac-Pro:Blink seanwayland$ export PATH
(base) seans-Mac-Pro:Blink seanwayland$ which gcc
/usr/bin/gcc
seanwayland commented 3 years ago

I seem to have gcc installed and make


/usr/bin/gcc
(base) seans-Mac-Pro:Blink seanwayland$ whereis make
/usr/bin/make
(base) seans-Mac-Pro:Blink seanwayland$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
(base) seans-Mac-Pro:Blink seanwayland$ ```
seanwayland commented 3 years ago

It looks like I have the clang compiler installed


Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
(base) seans-Mac-Pro:Blink seanwayland$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin```
seanwayland commented 3 years ago
(base) seans-Mac-Pro:Blink seanwayland$ clang --version
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
(base) seans-Mac-Pro:Blink seanwayland$ 
seanwayland commented 3 years ago

This looks to me like it is the location of the g++ compiler being used ???


lrwxr-xr-x    1 seanwayland  admin       110 May 22 17:32 arm-none-eabi-g++ -> /usr/local/Caskroom/gcc-arm-embedded/10-2020-q4-major/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-g++  ```
seanwayland commented 3 years ago
lrwxr-xr-x    1 seanwayland  admin        34 Sep 22  2020 gcc-ar-10 -> ../Cellar/gcc/10.2.0/bin/gcc-ar-10
seanwayland commented 3 years ago

This looks like it might be the path to the file that is not being found perhaps iti is that libcc1.0.so Looks like a compiled file for that library.

(base) seans-Mac-Pro:10 seanwayland$ pwd
/usr/local/lib/gcc/10
(base) seans-Mac-Pro:10 seanwayland$ ls 
gcc                     libatomic.dylib         libgcc_s_ppc64.1.dylib  libgomp.1.dylib         libitm.dylib            libquadmath.a           libssp_nonshared.a      libsupc++.a
libasan.6.dylib         libcc1.0.so             libgcc_s_x86_64.1.dylib libgomp.a               libitm.spec             libquadmath.dylib       libstdc++.6.dylib       libubsan.1.dylib
libasan.dylib           libcc1.so               libgfortran.5.dylib     libgomp.dylib           libobjc-gnu.4.dylib     libsanitizer.spec       libstdc++.a             libubsan.dylib
libasan_preinit.o       libgcc_ext.10.4.dylib   libgfortran.a           libgomp.spec            libobjc-gnu.a           libssp.0.dylib          libstdc++.a-gdb.py
libatomic.1.dylib       libgcc_ext.10.5.dylib   libgfortran.dylib       libitm.1.dylib          libobjc-gnu.dylib       libssp.a                libstdc++.dylib
libatomic.a             libgcc_s.1.dylib        libgfortran.spec        libitm.a                libquadmath.0.dylib     libssp.dylib            libstdc++fs.a
(base) seans-Mac-Pro:10 seanwayland$ 
seanwayland commented 3 years ago

I added that directory to the path . That directory appears to be the location of the cc1 program the compiler is looking for ?

(base) seans-Mac-Pro:~ seanwayland$ echo $PATH
/Users/seanwayland/opt/anaconda3/bin:/Users/seanwayland/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/opt/local/bin:/opt/local/sbin:/usr/local/lib:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/lib/gcc/10
(base) seans-Mac-Pro:~ seanwayland$ 
seanwayland commented 3 years ago

I also added that folder as an include in this file

{
  "configurations": [
    {
      "cStandard": "c11",
      "compilerPath": "arm-none-eabi-g++.exe",
      "cppStandard": "c++17",
      "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
      ],
      "includePath": [
        "${workspaceFolder}/**",
        "${workspaceFolder}/../../libdaisy/**",
        "${workspaceFolder}/../../DaisySP/**",
        "/usr/local/lib/gcc/10"
      ],
      "name": "Win32",
      "windowsSdkVersion": "10.0.17763.0"
    },
    {
      "cStandard": "c11",
      "compilerPath": "/usr/local/bin/arm-none-eabi-g++",
      "cppStandard": "c++17",
      "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
      ],
      "includePath": [
        "${workspaceFolder}/**",
        "${workspaceFolder}/../../libDaisy/**",
        "${workspaceFolder}/../../DaisySP/**"
      ],
      "name": "macOS"
    }
  ],
  "version": 4
}
seanwayland commented 3 years ago

none of that seemed to help

rm -fR build
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  -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -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
arm-none-eabi-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory
compilation terminated.
make: *** [build/startup_stm32h750xx.o] Error 1
The terminal process "/bin/bash '-c', 'make clean; make'" terminated with exit code: 2.

Terminal will be reused by tasks, press any key to close it.
seanwayland commented 3 years ago

I'm sorry I am a bit new to building C++ programs using VSCODE on a mac I usually use XCODE with JUCE. Been banging at this problem for a couple of hours now. Time to play some music instead I will take another look tomorrow. Sorry for all the posts in the thread I thought they might help someone at some point. I was able to dump a program to the daisy using this https://electro-smith.github.io/Programmer/ that was all I was able to do today. Maybe more luck tomorrow.

seanwayland commented 3 years ago

OK back at it this morning. This was missing ... (base) seans-Mac-Pro:~ seanwayland$ dfu-util --version -bash: dfu-util: command not found (base) seans-Mac-Pro:~ seanwayland$ sudo port install dfu-util I brew installed dfu-util. That didnt help

seanwayland commented 3 years ago

Perhaps the toolchain didn't install properly . Perhaps I should attempt to reinstall it. ```(base) seans-Mac-Pro:~ seanwayland$ make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0 (base) seans-Mac-Pro:~ seanwayland$ arm-none-eabi-gcc --version arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) seans-Mac-Pro:~ seanwayland$ dfu-util --version 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/

(base) seans-Mac-Pro:~ seanwayland$ openocd --version Open On-Chip Debugger 0.11.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html (base) seans-Mac-Pro:~ seanwayland$ ```

seanwayland commented 3 years ago

I tried reinstalling the toolchain using the installer. That didn't help.

seanwayland commented 3 years ago

(base) seans-Mac-Pro:Blink seanwayland$ sudo find / -name "cc1plus"
Password:
/usr/local/Caskroom/gcc-arm-embedded/10-2020-q4-major/gcc-arm-none-eabi-10-2020-q4-major/lib/gcc/arm-none-eabi/10.2.1/cc1plus
/usr/local/Cellar/gcc/10.2.0/libexec/gcc/x86_64-apple-darwin17/10.2.0/cc1plus
^C
(base) seans-Mac-Pro:Blink seanwayland$ sudo find / -name "cc1"
/usr/local/Caskroom/gcc-arm-embedded/10-2020-q4-major/gcc-arm-none-eabi-10-2020-q4-major/lib/gcc/arm-none-eabi/10.2.1/cc1
/usr/local/Cellar/gcc/10.2.0/libexec/gcc/x86_64-apple-darwin17/10.2.0/cc1
^C ```
seanwayland commented 3 years ago

OK I added that gcc-arm-embedded path to the $PATH (base) seans-Mac-Pro:~ seanwayland$ echo $PATH /Users/seanwayland/opt/anaconda3/bin:/Users/seanwayland/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/opt/local/bin:/opt/local/sbin:/usr/local/lib:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/lib/gcc/10:/usr/local/Caskroom/gcc-arm-embedded/10-2020-q4-major/gcc-arm-none-eabi-10-2020-q4-major/lib/gcc/arm-none-eabi/10.2.1/

seanwayland commented 3 years ago

I also added it to this properties JSON like this


        "${workspaceFolder}/**",
        "${workspaceFolder}/../../libdaisy/**",
        "${workspaceFolder}/../../DaisySP/**",
        "/usr/local/lib/gcc/10",
        "/usr/local/Caskroom/gcc-arm-embedded/10-2020-q4-major/gcc-arm-none-eabi-10-2020-q4-major/lib/gcc/arm-none-eabi/10.2.1/"
      ], ```
seanwayland commented 3 years ago

Well I have a windows computer which has an ubuntu partition. Maybe I will have more luck in a different OS

seanwayland commented 3 years ago

Well it built on windows by the looks of what happened but I didnt see the red led blinking. I assume these examples should work on the "pod" which I assume is the same board as the "seed".

seanwayland commented 3 years ago

I tried building the "phaser" example which worked using the daisy web programmer on both windows and OSX. It appears also to have built. But the board doesnt seem to be working.



   text    data     bss     dec     hex filename
  34224     808   96320  131352   20118 build/phaser.elf
arm-none-eabi-objcopy -O ihex build/phaser.elf build/phaser.hex
arm-none-eabi-objcopy -O binary -S build/phaser.elf build/phaser.bin

Terminal will be reused by tasks, press any key to close it.
seanwayland commented 3 years ago

I tried connecting the "probe" and building the "blink" with that under windows. With the "probe" connected the LED turns off. From VSCODE it looked like it had built correctly but the led on the "pod" stayed off.

seanwayland commented 3 years ago

OMG finally it's working and blinking on windows .

Warning: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash   "
Downloading element to address = 0x08000000, size = 24096
Erase           [=========================] 100%        24096 bytes
Erase    done.
Download        [=========================] 100%        24096 bytes
Download done.
File downloaded successfully
Error during download get_status
make: *** [../../libdaisy/core/Makefile:276: program-dfu] Error 74
The terminal process "C:\Program Files\Git\bin\bash.exe '-c', 'make clean; make; make program-dfu'" terminated with exit code: 2.

Terminal will be reused by tasks, press any key to close it.
stephenhensley commented 3 years ago

Hey, @seanwayland thanks for all of the detail. Glad you were able to get it up and running on Windows.

Hope we can help resolve your issues on Mac OS as well.

It looks like you may have bypassed the first step of the Getting Started guide (or something about it didn't run correctly).

After running the install.command file from the DaisyToolchain repo. You should be able to verify the toolchain by running the commands mentioned here

If you get anything resembling: command not found then the installation for that part of the toolchain did not work correctly.

It looks like you did gather up the things you needed from brew manually, though (or the install script partially worked).

Before attempting to use VS Code, it might be worth attempting to run make directly from the terminal. To see if the errors you receive are any different (This would at least rule out any issues in the task configuration, even though the tasks mostly just run make).

seanwayland commented 3 years ago

Hi Stephen, Thanks for your reply. I tried again on the mac this evening. I attempted to rebuild the toolchain using your installer and also brew reinstalled a couple of the dependencies. I checked all the dependencies again using the commands mentioned. I trashed the repo and recloned it recursively using your command. I then cd'd into the seed/blink directory and ran the makefile directly from that directory and a couple of files of yours were not found by make. I took a look at your makefile I was wondering if the library paths should be actually the entire path not using ../../ .. Anyway here is the output I will take another look using vscode. Its late here and I have been writing python and sql all day at work so dont have a lot more appetite for screens :) script finishes like this

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.

[Process completed]

(base) seans-Mac-Pro:~ seanwayland$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

(base) seans-Mac-Pro:~ seanwayland$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

(base) seans-Mac-Pro:~ seanwayland$ dfu-util --version
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/

(base) seans-Mac-Pro:~ seanwayland$ openocd --version
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html

(base) seans-Mac-Pro:Desktop seanwayland$ git clone --recurse-submodules https://github.com/electro-smith/DaisyExamples ~/Desktop/DaisyExamples
Cloning into '/Users/seanwayland/Desktop/DaisyExamples'...
remote: Enumerating objects: 11965, done.
remote: Counting objects: 100% (3360/3360), done.
remote: Compressing objects: 100% (1224/1224), done.
remote: Total 11965 (delta 2235), reused 3141 (delta 2103), pack-reused 8605
Receiving objects: 100% (11965/11965), 949.38 MiB | 35.15 MiB/s, done.
Resolving deltas: 100% (8008/8008), done.
Checking connectivity... done.
Checking out files: 100% (3637/3637), done.
Submodule 'DaisySP' (https://github.com/electro-smith/DaisySP) registered for path 'DaisySP'
Submodule 'libdaisy' (https://github.com/electro-smith/libDaisy) registered for path 'libdaisy'
Cloning into '/Users/seanwayland/Desktop/DaisyExamples/DaisySP'...
Cloning into '/Users/seanwayland/Desktop/DaisyExamples/libdaisy'...
Submodule path 'DaisySP': checked out '6ad2e5928b1b0af924ae7e6cd23d08967acb8864'
Submodule path 'libdaisy': checked out '444d175ddda0a1f91b271cfe1b7eac4ff50d69ed'
(base) seans-Mac-Pro:Desktop seanwayland$ cd DaisyExamples
(base) seans-Mac-Pro:DaisyExamples seanwayland$ ls
DaisySP     README.md   cube        field       libdaisy    petal       rebuild_all.sh  seed        versio
LICENSE     ci      dist        helper.py   patch       pod     resources   utils
(base) seans-Mac-Pro:DaisyExamples seanwayland$ cd seed
(base) seans-Mac-Pro:seed seanwayland$ ls
Blink           Ram         atone           compressor      flanger         metro           pitchshifter        svf
Button          ReceiveTest     autowah         crossfade       fm2         modalvoice      pluck           synthbassdrum
Drum            SDMMC           balance         dcblock         formantosc      moogladder      port            synthsnaredrum
HWTest          USB_CDC         biquad          decimator       fractal_noise       nlfilt          resonator       tone
Knob            WavPlayer       bitcrush        delayline       grainlet        oscbank         reverbsc        tremolo
LCD_HD44780     adenv           blosc           drip            harmonic_osc        oscillator      samplehold      variableshapeosc
Logger          adsr            bypass          dust            hihat           overdrive       sampleratereducer   varisaw
OLED            allpass         chorus          experimental        jitter          particle        smooth_random       vosim
Osc         analogbassdrum      clockednoise        faustnoise      line            phaser          string          whitenoise
QSPI            analogsnaredrum     comb            fir         maytrig         phasor          stringvoice     zoscillator
(base) seans-Mac-Pro:seed seanwayland$ cd Blink
(base) seans-Mac-Pro:Blink seanwayland$ ls
Blink.cpp   Blink.sln   Makefile    README.md   vs
(base) seans-Mac-Pro:Blink seanwayland$ make -f Makefile
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  -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -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
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  -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -MMD -MP -MF"build/diskio.d" -std=gnu11 -Wa,-a,-ad,-alms=build/diskio.lst ../../libdaisy/Middlewares/Third_Party/FatFs/src/diskio.c -o build/diskio.o
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  -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -MMD -MP -MF"build/ff.d" -std=gnu11 -Wa,-a,-ad,-alms=build/ff.lst ../../libdaisy/Middlewares/Third_Party/FatFs/src/ff.c -o build/ff.o
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  -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -MMD -MP -MF"build/ff_gen_drv.d" -std=gnu11 -Wa,-a,-ad,-alms=build/ff_gen_drv.lst ../../libdaisy/Middlewares/Third_Party/FatFs/src/ff_gen_drv.c -o build/ff_gen_drv.o
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  -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -MMD -MP -MF"build/ccsbcs.d" -std=gnu11 -Wa,-a,-ad,-alms=build/ccsbcs.lst ../../libdaisy/Middlewares/Third_Party/FatFs/src/option/ccsbcs.c -o build/ccsbcs.o
arm-none-eabi-g++  -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  -include stm32h7xx.h -I../../libdaisy -I../../libdaisy/src/ -I../../libdaisy/src/sys -I../../libdaisy/src/usbd -I../../libdaisy/Drivers/CMSIS/Include/ -I../../libdaisy/Drivers/CMSIS/DSP/Include -I../../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../../libdaisy/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -I../../libdaisy/core/ -I../../DaisySP/Source -I../../libdaisy/Middlewares/Third_Party/FatFs/src -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -MMD -MP -MF"build/Blink.d" -fno-exceptions -fasm -finline -finline-functions-called-once -fshort-enums -fno-move-loop-invariants -fno-unwind-tables  -std=gnu++14 -Wa,-a,-ad,-alms=build/Blink.lst Blink.cpp -o build/Blink.o
arm-none-eabi-g++  build/startup_stm32h750xx.o build/diskio.o build/ff.o build/ff_gen_drv.o build/ccsbcs.o build/Blink.o   -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard --specs=nano.specs --specs=nosys.specs -T../../libdaisy/core/STM32H750IB_flash.lds -L../../libdaisy/build  -L ../../DaisySP/build -ldaisy -lc -lm -lnosys -ldaisysp -Wl,-Map=build/Blink.map,--cref -Wl,--gc-sections -o build/Blink.elf
/usr/local/Caskroom/gcc-arm-embedded/10-2020-q4-major/gcc-arm-none-eabi-10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: cannot find -ldaisy
/usr/local/Caskroom/gcc-arm-embedded/10-2020-q4-major/gcc-arm-none-eabi-10-2020-q4-major/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: cannot find -ldaisysp
collect2: error: ld returned 1 exit status
make: *** [build/Blink.elf] Error 1
(base) seans-Mac-Pro:Blink seanwayland$ 
seanwayland commented 3 years ago

I also had a quick try again in VSCODE . Same linker type of error.


mkdir build        
arm-none-eabi-g++ -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DSTM32H750xx  -ISource -ISource/Control -ISource/Drums -ISource/Dynamics -ISource/Effects -ISource/Filters -ISource/Noise -ISource/PhysicalModeling -ISource/Synthesis -ISource/Utility  -O3 -Wall -Werror -fdata-sections -ffunction-sections -MMD -MP -MF"build/adenv.d" -MT"build/adenv.d" -fno-exceptions -finline-functions  -std=gnu++14 -static -Wa,-a,-ad,-alms=build/adenv.lst Source/Control/adenv.cpp -o build/adenv.o
arm-none-eabi-g++: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
compilation terminated.
make: *** [build/adenv.o] Error 1
The terminal process "/bin/bash '-c', 'make'" terminated with exit code: 2.

Terminal will be reused by tasks, press any key to close it.
seanwayland commented 3 years ago

bedtime now maybe I will let this run for as long as it takes tomorrow it didn't complete after 10 mins

sudo find / -name '*ldaisy*'
stephenhensley commented 3 years ago

Great! All of your toolchain seems to be installed correctly.

The Makefile is configured as expected. So you shouldn't have to edit any paths.

The error you're seeing means that the DaisySP, and libDaisy libraries have not been built.

In VS Code this should be done automatically when running the build task. However, since you were getting the error there that may not be happening.

To manually build those libraries from the command line all you need to do is navigate to the libDaisy, and DaisySP directories and run make in each one. DaisySP builds pretty quickly, but libDaisy may take a minute. Once this is done you should be able to build the Blink example.

There are also helper scripts for doing some of these things from the DaisyExamples folder (note that building every example can take some time):

# rebuild libraries
./ci/build_libs.sh

# rebuild all examples
./ci/build_examples.sh

# rebuild all libraries and examples 
./rebuild_all.sh

Hope that helps!

seanwayland commented 3 years ago

BINGO ! Its blinking. I ran the make command inside the libDaisy and in DaisySp directories

$ make -f Makefile

After that I changed my directory back to the Blink directory in Seed and ran these commands

$make clean
$make
$make program-dfu

I don't know if there is markdown for a blinking red led gif you will have to imagine one here yourself thanks so much for your help. Now I just gotta figure out your DSP library :) Thanks so much !!

seanwayland commented 3 years ago

https://www.flashingblinkylights.com/media/catalog/product/1/1/11341_bl_noodle_headband_modelv6_600_1.gif