Linking CMSIS DSP on LPC825 Target

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linking CMSIS DSP on LPC825 Target

595 Views
brentsinger
Contributor I

Hi, I have a need to calculate FFT on sensor data, using an LPC825 target, testing on 825Max devbrd. 

I believe the right approach is CMSIS DSP Math libraries. I am able to get the source to compile in my project, but the flash requirement is 333% of that in the LPC825. Now trying to use 'headers' with link to compiled .a library, to make sure i can it to fit in the 825. 

I followed the instructions:

- import that libraries into MCUXpresso IDE

- Run new project wizard, select the Library Headers:

brentsinger_0-1690177624235.png

The project complies initially, but when I add the code from this example

https://arm-software.github.io/CMSIS_5/DSP/html/group__FrequencyBin.html

I get this error, which is not surprising, as I've not linked the library yet.

brentsinger_1-1690177774411.png

In settings I have these libraries in the new project by default:

brentsinger_2-1690177804477.png

 

And no libraries or lib search paths. So adding:

- libCMSIS_DSPLIB_CM0.a

- C:\nxp\MCUXpressoIDE_11.7.1_9221\ide\Examples\CMSIS_DSPLIB\CMSIS_DSPLIB_Latest\CMSIS_DSPLIB_CM0

brentsinger_4-1690178040244.png

 

Doesn't successfully compile: 

brentsinger_3-1690178028186.png

I'm pulling my hair out. Please help before I am bald!! Thanks, Brent.

 

 

 

 

0 Kudos
6 Replies

567 Views
brentsinger
Contributor I

Hi Alice, this didn't have any effect. Error changed to:

brentsinger_0-1690262790425.png

 

0 Kudos

561 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @brentsinger 

 

You can refer to "Using CMSIS-DSP with MCUXpresso SDK and IDE":

https://community.nxp.com/t5/MCUXpresso-General-Knowledge/Using-CMSIS-DSP-with-MCUXpresso-SDK-and-ID...  

 

BR

Alice

0 Kudos

548 Views
brentsinger
Contributor I

Thanks, This seems to be a move in the right direction...

 

But the SDK I generate doesn't actually have the /lib/libCMSIS_DSPLIB_CM0.a directory or file in it. Or the examples, even though I have selected CMSIS DSP Library in the SDK generation.

 

I think it's for an older IDE version and changes have been made since. I will try again with fresh eyes today.

 

Is there someone in the FAE team who might be able to quickly put a "Hello World" together for me with the libCMSIS_DSPLIB_CM0 library linked? My target is the 824MAX development board, archive and send it thru. I might even send you beer. Otherwise I'll keep trying...

0 Kudos

500 Views
frank_m
Senior Contributor III

> But the SDK I generate doesn't actually have the /lib/libCMSIS_DSPLIB_CM0.a directory or file in it. Or the examples, even though I have selected CMSIS DSP Library in the SDK generation.

This was the default case with another vendor's MCU I made a few DSPLib applications for.

The ARM DSPLib comes with sources, and examples. Just use the source files instead and include them into your project, perhaps take a DSPLib example as template.

0 Kudos

582 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @brentsinger 

 

How change libCMSIS-DSPLIB_CM0.a to  CMSIS-DSPLIB_CM0 ?

"

Alice_Yang_0-1690190453472.png

 

"

 

BR

Alice

0 Kudos

564 Views
frank_m
Senior Contributor III

Yes, that would be standard behavior for GCC.
The "lib" prefix and ".a" suffix are automatically added to every name specified with "-l<lib>".
Not sure what Eclipse/LPCXpresso adds to the mix.

I would try to add the library via Drag&Drop, and add the library folder to the search path list.

0 Kudos