arm_math.h - pid functions

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

Tabulous
Posts: 509
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

arm_math.h - pid functions

Postby Tabulous » Tue Jun 14, 2022 9:28 am

seems this is not included in the chibistudio package.

what needs to be done to include it ?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: arm_math.h - pid functions

Postby Giovanni » Tue Jun 14, 2022 9:32 am

Where is it supposed to be? CMSIS is included as-is.

Giovanni

Tabulous
Posts: 509
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: arm_math.h - pid functions

Postby Tabulous » Tue Jun 14, 2022 10:09 am

yes i would have thought so. Looking at ARM git i can see it is there in CMSIS Version 4(legacy).

Is latest chibiOS using Version 5 ?

If so i dont believe the chibistudio includes all the CMSIS package ? i.e. DSP folder not included

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: arm_math.h - pid functions

Postby Giovanni » Tue Jun 14, 2022 10:31 am

Yes, it is one of the latest 5.x.

Not all CMSIS packages are included just the core-related classic CMSIS, note those are in ChibiOS, not in ChibiStudio. Chibistudio does not include libraries at all (except those in compilers), just tools.

You could add extra packages into a new dir under ChibiStudio/lib/xxxx

Giovanni

Tabulous
Posts: 509
Joined: Fri May 03, 2013 12:02 pm
Has thanked: 7 times
Been thanked: 17 times

Re: arm_math.h - pid functions

Postby Tabulous » Tue Jun 14, 2022 10:36 am

Giovanni wrote:Yes, it is one of the latest 5.x.

Not all CMSIS packages are included, note those are in ChibiOS, not in ChibiStudio. Chibistudio does not include libraries at all (except those in compilers), just tools.

You could add extra packages into a new dir under ChibiStudio/lib/xxxx

Giovanni


Sorry i mean't Chibios.

So i added teh DSP folder to C:\ChibiStudio\chibios2111\os\common\ext\ARM\CMSIS folder



i then included arm_math.h i a project, but it cant find the file.


Where would i need to change the build make to added the new include folder ?

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: arm_math.h - pid functions

Postby Giovanni » Tue Jun 14, 2022 10:40 am

Add the path this way:

INCDIR = $(CONFDIR) $(ALLINC) $(TESTINC) $(CHIBIOS)/mypath_into_chibios

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: Bing [Bot], FXCoder and 18 guests