Starting the Seed and VS Code problems

HI everyone, I’m just starting out with the Daisy Seed and VS Code so please forgive me for asking some questions that are probably quite simple. I’ve think I’ve installed the toolchain correctly and the examples folder in on my desktop following on the instructions online but try as I may I can not get the blink program to compile, all I get is errors. below is the output I get. could someone have a look and if possible let me know what I may have done wrong and how it can be fixed. Thanks for reading and I hope someone can help… I’m running windows 10

Executing task: make clean; make; make program-dfu

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/src/usbh -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/Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I…/…/libDaisy/Middlewares/ST/STM32_USB_Host_Library/Class/MSC/Inc -I…/…/libDaisy/core/ -I…/…/DaisySP/Source -I…/…/libDaisy/Middlewares/Third_Party/FatFs/src -O2 -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
arm-none-eabi-gcc.exe: error: unrecognized argument in option ‘-mcpu=cortex-m7’
arm-none-eabi-gcc.exe: note: valid arguments to ‘-mcpu=’ are: arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700 arm700i arm710 arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920 arm920t arm922t arm926ej-s arm940t arm946e-s arm966e-s arm968e-s arm9e arm9tdmi cortex-a15 cortex-a5 cortex-a7 cortex-a8 cortex-a9 cortex-m0 cortex-m1 cortex-m3 cortex-m4 cortex-r4 cortex-r4f cortex-r5 ep9312 fa526 fa606te fa626 fa626te fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 strongarm1110 xscale
arm-none-eabi-gcc.exe: error: unrecognized argument in option ‘-mfpu=fpv5-d16’
arm-none-eabi-gcc.exe: note: valid arguments to ‘-mfpu=’ are: fpa fpe2 fpe3 fpv4-sp-d16 maverick neon neon-fp16 neon-vfpv4 vfp vfp3 vfpv3 vfpv3-d16 vfpv3-d16-fp16 vfpv3-fp16 vfpv3xd vfpv3xd-fp16 vfpv4 vfpv4-d16
make: *** […/…/libDaisy/core/Makefile:268: build/startup_stm32h750xx.o] Error 1
dfu-util -a 0 -s 0x08000000:leave -D build/Blink.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/Blink.bin for reading
make: *** […/…/libDaisy/core/Makefile:330: program-dfu] Error 74

  • The terminal process “C:\Program Files\Git\bin\bash.exe ‘–login’, ‘-i’, ‘-c’, ‘make clean; make; make program-dfu’” terminated with exit code: 2.
  • Terminal will be reused by tasks, press any key to close it.

I don’t use Windows, but the error looks like it’s a very old version of gcc.

Thank you for taking the time to reply, I will look at updating those files …
Thanks again

Of course, I could be wrong. My reasoning is that those error messages indicate that your version of GCC doesn’t have support for Cortex-M7, which has been around for years.
Where did you get instructions on installing the toolchain? This shouldn’t be a research project or an adventure.

I think this might be the latest documentation:

I followed that exact link you posted so it should be correct. is there a way of showing what version of GCC I have installed ?

I just redownloaded and reinstalled the tool chain from the link on your post just to be sure and Im still getting the same errors ?

go to the command prompt and type: g++ --version

Thank you …

Dmax7@DESKTOP-72DADD4 MINGW64 ~/Documents/Daisy_Seed_Projects/DaisyExamples/seed/Blink (master)
$ g++ --version
g++.exe (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)
I take it this is the correct version ?

Well Im still trying to get this working … can no one tellme why Im getting these errors ? ive looked for answers on the forum here but cant find anything that works ? it seems that no matter what I do I can not get the Make command to work ?
please help if you can :slight_smile:

Dmax7@DESKTOP-72DADD4 MINGW64 ~/Documents/Daisy_Seed_Projects/DaisyExamples/DaisySP (master)
$ make
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++.exe: error: unrecognized argument in option ‘-mcpu=cortex-m7’
arm-none-eabi-g++.exe: note: valid arguments to ‘-mcpu=’ are: arm1020e arm1020t arm1022e arm1026ej-s arm10e arm10tdmi arm1136j-s arm1136jf-s arm1156t2-s arm1156t2f-s arm1176jz-s arm1176jzf-s arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm70 arm700 arm700i arm710 arm7100 arm710c arm710t arm720 arm720t arm740t arm7500 arm7500fe arm7d arm7di arm7dm arm7dmi arm7m arm7tdmi arm7tdmi-s arm8 arm810 arm9 arm920 arm920t arm922t arm926ej-s arm940t arm946e-s arm966e-s arm968e-s arm9e arm9tdmi cortex-a15 cortex-a5 cortex-a7 cortex-a8 cortex-a9 cortex-m0 cortex-m1 cortex-m3 cortex-m4 cortex-r4 cortex-r4f cortex-r5 ep9312 fa526 fa606te fa626 fa626te fa726te fmp626 generic-armv7-a iwmmxt iwmmxt2 mpcore mpcorenovfp native strongarm strongarm110 strongarm1100 strongarm1110 xscale
arm-none-eabi-g++.exe: error: unrecognized argument in option ‘-mfpu=fpv5-d16’
arm-none-eabi-g++.exe: note: valid arguments to ‘-mfpu=’ are: fpa fpe2 fpe3 fpv4-sp-d16 maverick neon neon-fp16 neon-vfpv4 vfp vfp3 vfpv3 vfpv3-d16 vfpv3-d16-fp16 vfpv3-fp16 vfpv3xd
vfpv3xd-fp16 vfpv4 vfpv4-d16
arm-none-eabi-g++.exe: error: unrecognized command line option ‘-std=gnu++14’
make: *** [Makefile:238: build/adenv.o] Error 1

I’m not a windows guy, so this might be a red herring, but are you sure that g++.exe and arm-none-eabi-g++.exe are the same program? What does arm-none-eabi-g++.exe --version show?

Hope this helps,
John

1 Like

that gives me this
arm-none-eabi-g++.exe (GCC) 4.7.2

and g++.exe (GNU Arm Embedded Toolchain 10-2020-q4-major) 10.2.1 20201103 (release)

That maybe the problem … I uninstalled thatarm-none… exe program and things are looking better … thanks to you :slight_smile:

Yes that was the problem , I can now compile the code …
Thanks again :slight_smile:

2 Likes

Glad it worked out for you! As I say, not a WIndoze guy at all (Linux here, please), so this was a total shot in the dark.

Best of luck moving forward,
John

2 Likes

I have no idea how that other version got onto my system :slight_smile: but everything is running as it should now :slight_smile:
thanks again John

1 Like