Skip to main content
PMOOD.1
Associate II
August 10, 2025
Solved

arm_math.h: No such file or directory

  • August 10, 2025
  • 4 replies
  • 503 views

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".

 

 

 

 

Best answer by PMOOD.1

...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. 

4 replies

PMOOD.1
PMOOD.1Author
Associate II
August 10, 2025

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
Super User
August 10, 2025

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
August 11, 2025

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
August 11, 2025

...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
April 7, 2026

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...