Skip to main content
PMOOD.1
Associate II
Aug 10, 2025 11:37 AM UTC
Solved

arm_math.h: No such file or directory

The configuration for include paths in cubeIDE seems horrendous.  I have installed CMSIS 5.9 using MX no problems.  IDE didnt pick it up. Manually configured the path into cubeIDE..... still cant see the include file ... even though it is right there.

I am using exist source files imported into cubeIDE but there is no easy way to make the cubeIDE see the include paths.

Bang head .. repeat.

Do I have to manually copy the CMSIS DSP files into the project ??

I see from the web this problem occurs alot .. with many different "solutions".

 

 

 

 

PMOOD.1
PMOOD.1Best answer
Associate II
Aug 11, 2025 1:12 AM UTC

...so long story short ... I updated cubeIDE from version 1.18 to 1.19 and the problems went away. 

Includes work correctly and the workspaces are working again. 

5 replies

PMOOD.1
PMOOD.1Author
Associate II
Aug 10, 2025 12:16 PM UTC

PMOOD1_0-1754828061248.png

The problem is bigger than I thought ... cubeMX loads the files into what it thinks is a workspace ... but IDE opens another workspace which it gets from cubeMX .. huh ... when I switch the IDE to the MX workspace I get a inconsistency message ... huh. 

TDK
Aug 10, 2025 1:25 PM UTC

Include paths are in project properties:

TDK_0-1754832292878.png

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
PMOOD.1
PMOOD.1Author
Associate II
Aug 11, 2025 12:51 AM UTC

Thanks for your reply TDK ...however

this is the result of "generate code" in MX

PMOOD1_0-1754872935773.png

... and when I press open project.

cubeIDE opens my default workspace below ..

 

BUT.... the project file heirarchy is there but contains no generated source files ...

the files are actually  in the MX directory above.

 

PMOOD1_1-1754873098099.png

PMOOD1_2-1754873308778.png

when I try to set the IDE workspace to where MX actually put the files ... I get the workspace conflict error message.

But if i try to compile the "empty" project in from the IDE it does compile ( with the arm_math.h error message).

 

PS this started happening after I did a MX update. I am going to reinstall from scratch.

PMOOD.1
PMOOD.1AuthorBest answer
Associate II
Aug 11, 2025 1:12 AM UTC

...so long story short ... I updated cubeIDE from version 1.18 to 1.19 and the problems went away. 

Includes work correctly and the workspaces are working again. 

Visitor II
Apr 7, 2026 2:42 PM UTC

I met this problem too (after I installed cubeMX), and found nothing that can solve this problem...

And then I reinstalled the IDE...

It worked...