2021-07-18 1:21 PM
I spent the time to learn how to get it up and running so that you don't have to. What I am explaining here was done on Win 10. My CubeIDE version was 1.6.1.
I hope this helped you. If it did, consider giving my post a "Like". Thanks.
Solved! Go to Solution.
2021-07-21 10:03 AM
I am happy to read it helped. And, yes, I agree. Better documentation and a more streamlined interface would go a long way so that we can focus on what's important: put ST's µC to good use by writing code for it rather than fighting the system.
2021-07-21 3:44 AM
Many many thanks for sharing this information. I was desperatly trying to make the ARM DSP Lib working within CubeMX but it did not work at all.
So far I figured out: Inside the "Software Packs Component Selecor" select "STMicroelectronics.X-Cube-ALGOBUILD->DSP Library".
This makes the DSP Lib available in the CubeMX Project but the Code Generator does not copy the "libarm_cortexMxx_math.a" files. It only copies the "arm_math.h" file
plus it is a much older version (v.1.5.3 while offical release is at v1.9. already)
I guess this is some thin ST could really put some effort on making this process much more intuitive. I don't like fighting with tools, I rathe would like to fokus on my project.
So again, thanks you very much!
CubeMX 6.2.1
CubeIDE 1.7.0
Nucleo-H745Zi
2021-07-21 10:03 AM
I am happy to read it helped. And, yes, I agree. Better documentation and a more streamlined interface would go a long way so that we can focus on what's important: put ST's µC to good use by writing code for it rather than fighting the system.
2021-07-22 4:08 AM
Hello @Stephan Hörold ,
the ARM_MATH_CM4 flag is obsolete since about 2019, in newer versions the Flag is not used, it will not cause problem if it set, but it also has no effect. If the flag is set for backward compatibility that makes sense, but it is not needed for the latest versions, but I can not tell you when it was changed exactly.
@Community member If you like to compile it from source, I added a pdf, I hope it helps.
Best Regards, Seppel
2021-07-22 1:38 PM
Hi @seppeltronics_v, thanks for that information. So it essentially means the last step I showed above can be skipped.
2021-07-22 2:58 PM
Hello @Stephan Hörold ,
it depends on the version, if you are not sure, it may be better to set ARM_MATH_CM4 or ARM_MATH_CM7, depending on the core. I did not find the exact date of the change(I did not put too much effort in it) and I'm not sure ARM ever stated that they changed in the release, so it was obvious.
But maybe you can help me in finding the new binaries(*.a) of the Version 5.7.0 and 5.8.0? The repository, but that contains only code, as to be expected, but I have no idea where the *.a files are actually published by ARM.
Thanks a lot, Best Regards, Seppel
2023-08-15 11:00 PM
I am currently using STM32H747I-DISCO with Mac. This solution worked for me! Thank you :)
Just make sure you don't blindly copy ${workspace_loc:/<projectName>/Drivers/CMSIS/DSP/Lib/GCC}.
replace <projectName> with your own projectName. A tedious mistake I overlooked.
2023-12-25 4:02 PM
Thank you very much for your post, Hansel. It also worked for me, you made my day :raising_hands::raising_hands:
2025-08-16 1:12 AM
Wish that I had more to offer, but if anyone wishes to JUST download the required files from GitHub, here are the steps:
Follow these steps in your terminal or command prompt:
Initialize a local repository without checking out files.
Create a new directory and navigate into it. Then, run the git clone command with the --no-checkout and --filter=blob:none flags.3 The --filter=blob:none flag prevents Git from downloading the file content (the "blobs"), while --no-checkout stops the initial checkout of the entire repository.
mkdir my-repo && cd my-repo git clone --no-checkout --filter=blob:none <repository-url> .
The . at the end of the clone command tells Git to clone the repository into the current directory.
Enable sparse checkout.
Once you're inside the new directory, you need to enable the sparse checkout feature.
git sparse-checkout init --cone
The --cone mode is the recommended default, as it simplifies the process and is optimized for performance in large repositories.
Specify the desired directory.
Use the git sparse-checkout set command to tell Git which subdirectory you want to download.4 This command updates your sparse checkout configuration file (.git/info/sparse-checkout).
git sparse-checkout set <path/to/subdirectory>
Complete the checkout.
Now, tell Git to download the files for the specified subdirectory.
git checkout
You can use the same link Hansel provided in the OP to find the GitHub repo link, it's under the second download, not the patch download.
Thank you so much for this guide, Hansel, I never would have figured this out on my own.