Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete modules and variables that are not used in IAR #5

Closed
Hoseinbme opened this issue Feb 27, 2023 · 1 comment
Closed

delete modules and variables that are not used in IAR #5

Hoseinbme opened this issue Feb 27, 2023 · 1 comment

Comments

@Hoseinbme
Copy link

Hi im new to embedded system , I am using IAR compiler to work with ARM ST MCUS
And I want to use CMSIS DSP library which is a big library
The problem I faced is that when I use functions related to Fourier calculation, it gives an out of memory error while I used a small length for Fourier, but the compiler added the whole library to my project, There are notes that IAR stated that modules and variables that are not needed are not used.
And after a lot of searching and asking, ARM-software/CMSIS-DSP#91I found out that it is possible to define a series of rules for the compiler to use only the necessary parts that must be defined before the DSP library is compiled.

In the IAR compiler, CMSIS libraries are added with just one tick.
Now my question is, is it possible to add settings for this library?
And if possible, to which part should these commands be added, because iar has several options

project-->option-->compiler-->preprocess
project-->option-->compiler-->extra option -->command line
project-->option-->assembler-->preprocess
project-->option-->assembler-->extra option -->command line
project-->option-->linker-->define....
project-->option-->linker-->extra option -->command line
.
.
Is there a training video or ... available?

@antonf-iar
Copy link
Collaborator

Hi, support questions are handled by IAR technical support:
https://www.iar.com/knowledge/support/request-technical-support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants