Hoverboard-Firmware-Hack-Gen2 icon indicating copy to clipboard operation
Hoverboard-Firmware-Hack-Gen2 copied to clipboard

#include "arm_math.h"

Open drbytes opened this issue 7 years ago • 9 comments

Hi, I installed all the relevant software packs in Keil uVision ... at least that what I thought but I get a compilation error in main.c around line 47: #include "arm_math.h" resulting in

Src\main.c(47): error:  #5: cannot open source input file "arm_math.h": No such file or directory
  #include "arm_math.h" 

Do you know what I'm missing? (keil n00b)

drbytes avatar Sep 01 '18 17:09 drbytes

I've commented the line and it builds.

drbytes avatar Sep 01 '18 22:09 drbytes

You have to include the path C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.4.0\CMSIS\Include in the "Options for Target..." > C/C++. Afterwards it compiles al the c-files but it gets stuck on the other issue that's reported in this repo.

pieterjanbuntinx avatar Nov 27 '18 15:11 pieterjanbuntinx

I have a similar problem with an adafruit MP3 program that uses arm_math.h, what do I have to do to fix this thing. ERROR: arm_math.h: No such file or directory

Johnvan avatar Feb 24 '19 05:02 Johnvan

It now works for me. To solve the other error I got I had to enable this: image

pieterjanbuntinx avatar Feb 26 '19 17:02 pieterjanbuntinx

I have no idea what you are trying to tell me about Enabling this, what and how. Where is this Options for Target.

Johnvan avatar Feb 28 '19 00:02 Johnvan

You have to include the path C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.4.0\CMSIS\Include in the "Options for Target..." > C/C++. Afterwards it compiles al the c-files but it gets stuck on the other issue that's reported in this repo.

in my case the correct folder is: C:\Users\GauchoHP\AppData\Local\Arm\Packs\ARM\CMSIS\5.5.1\CMSIS\Include

after doing this it correctly compile.

gaucho1978 avatar Apr 19 '19 14:04 gaucho1978

Hi. Were you able to flash this firmware?

renmalek7 avatar Apr 08 '20 11:04 renmalek7

I updated my IDE and the fault went away. Thankyou for your assistance however, much appreciated.

Johnvan avatar Apr 09 '20 01:04 Johnvan

The <arm_math.h> and other related .h files may also be found at this repository: https://github.com/PaulStoffregen/arm_math

weiminshen99 avatar May 19 '23 22:05 weiminshen99