|
Main /
ARMProcessorsForMusiciansAndArtistsClone these 2 gits into your working directory https://github.com/theisro/Soundpipe.git https://github.com/theisro/soundpipe-stm32f4.git On a mac osx , you can do it with the following command from the terminal git clone https://github.com/theisro/Soundpipe.git git clone https://github.com/theisro/soundpipe-stm32f4.git Download the ARM cross compiler. LaunchPad links Download ST-LINK add these to your PATH variable of your shell export PATH = "/path to your downloaded ARM cross compiler/bin":"/path to your downloaded ST-LINK folder" Export the following environment variables in your shell. export CC=arm-none-eabi-gcc export CXX=arm-none-eabi-g++ export AR=arm-none-eabi-ar export LD=arm-none-eabi-ld export LDFLAGS="--specs=nosys.specs" Paul the author of Soundpipe recommended adding NO_LIBSNDFILE=1 to the top of config.mk. But I still got errors while trying to compile with missing libsndfile. I have not been able to get libsndfile cross-compiled to STM32F4. I have raised a github issue, but I obviously don't have enough experience in developing cross-compiled tools and libraries. The issue is here - https://github.com/erikd/libsndfile/issues/382 . If anyone knows how to properly cross-compile libsndfile for STM32F4 please post your responses there or here in this wiki. Now run make $ make After running for a while it will fail complaining that it is not able to find libsndfile. But the main libsoundpipe library will be compiled and present in your root Soundpipe directory. Now clone https://github.com/theisro/soundpipe-stm32f4 and modify src/Makefile. The line that reads LDFLAGS = -L/home/arun/build/Soundpipe should be modified to point to the path where you cloned Soundpipe. Change to the src directory. $ cd src Now make burn to burn the example to your STM32F4 Discovery Board. $ make burn The repository had other directories like experimentsnn/ where various experiments with soundpipe can be found. They can be built the same way. The LDFLAG in the Makefile must be changed to point to the path of the Soundpipe library. |