Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using make on Pd2dsy output #7

Open
Iliceth opened this issue Nov 10, 2020 · 2 comments
Open

Error using make on Pd2dsy output #7

Iliceth opened this issue Nov 10, 2020 · 2 comments

Comments

@Iliceth
Copy link

Iliceth commented Nov 10, 2020

Hi

All seems to go well, from my daisytest.pd file Pd2dsy.py does create a new directory with diasy_boards.h daisytest.cpp and Makefile as the contents. When I then run make, I get the error underneath. It seems to look for Heavy_daisytest.hpp, a file which wasn't created, did a search in case it was put elsewhere. What do I probably do wrong?

C:\Users\andye\pd2dsy\daisytest>make
mkdir build
arm-none-eabi-gcc -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DUSE_HAL_DRIVER -DSTM32H750xx -DUSE_HAL_DRIVER -DHSE_VALUE=16000000 -DSTM32H750xx -Ic/ -I../libdaisy -I../libdaisy/src/ -I../libdaisy/Drivers/CMSIS/Include/ -I../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../libdaisy/core/ -I -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -MMD -MP -MF"build/system_stm32h7xx.d" -std=gnu11 -Wa,-a,-ad,-alms=build/system_stm32h7xx.lst ../libdaisy/core/system_stm32h7xx.c -o build/system_stm32h7xx.o
arm-none-eabi-gcc -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DUSE_HAL_DRIVER -DSTM32H750xx -DUSE_HAL_DRIVER -DHSE_VALUE=16000000 -DSTM32H750xx -Ic/ -I../libdaisy -I../libdaisy/src/ -I../libdaisy/Drivers/CMSIS/Include/ -I../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../libdaisy/core/ -I -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-g++ -c -mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard -DUSE_HAL_DRIVER -DSTM32H750xx -DUSE_HAL_DRIVER -DHSE_VALUE=16000000 -DSTM32H750xx -Ic/ -I../libdaisy -I../libdaisy/src/ -I../libdaisy/Drivers/CMSIS/Include/ -I../libdaisy/Drivers/CMSIS/Device/ST/STM32H7xx/Include -I../libdaisy/Drivers/STM32H7xx_HAL_Driver/Inc/ -I../libdaisy/core/ -I -O2 -Wall -Wno-missing-attributes -fasm -fdata-sections -ffunction-sections -MMD -MP -MF"build/daisytest.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/daisytest.lst daisytest.cpp -o build/daisytest.o
daisytest.cpp:5:10: fatal error: c/Heavy_daisytest.hpp: No such file or directory
5 | #include "c/Heavy_daisytest.hpp"
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [build/daisytest.o] Fout 1

Kind regards
Andy

@stephenhensley
Copy link
Collaborator

Hi Andy. Sorry for the late response on this.

If hvcc ran correctly, you should have a folder called c/ inside of the same folder with the generated Makefile, daisytest.cpp, etc. That would have the file it's checking for.

Were there any other errors that came out when running the python pd2dsy.py?

@Iliceth
Copy link
Author

Iliceth commented Dec 6, 2020

Hi Stephen, no problem, you are busy. Thanks for getting back to me.

There are no other contents in my folder.

I went over the steps for installing pd2dsy again, just to make sure, and I encountered a problem, which might have been already the case but I maybe overlooked then. It's at "6. Compile the libdaisy library for use in the libdaisy code generator by navigating into the libdaisy folder and running: make" When I do this, it gives me back this:

C:\Users\andye\pd2dsy\libdaisy>make
mkdir -p build/Drivers/STM32H7xx_HAL_Driver/Src
The syntax of the command is incorrect.
make: *** [build/Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.o] Fout 1

This ends here and there is an empty "build" directory, and a Drivers directory with the mentioned subdirectories, so maybe there is an issue?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants