How to implement CMSIS-DSP on S32DS

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

How to implement CMSIS-DSP on S32DS

1,998 Views
carolyn_zhang
Contributor II

Hi,

Could someboady tell me how to implement CMSIS-DSP on S32DS? I want to use FFT on S32K3. Thanks.

0 Kudos
Reply
6 Replies

1,974 Views
danielmartynek
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

1,967 Views
carolyn_zhang
Contributor II

Hi, Daniel,

It looks like the article is too old for reference. The structure of CMSIS had changed.Is there any suggestion? Thanks.

0 Kudos
Reply

1,911 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @carolyn_zhang,

There is no other guidelines for CMSIS integration.

However, NXP provides AMMCLIB for S32K3xx, which is an optimized library for the MCU series.

AMMCLIB:

https://www.nxp.com/design/design-center/software/automotive-software-and-tools/automotive-math-and-...

 

Regards,

Daniel

 

0 Kudos
Reply

1,835 Views
carolyn_zhang
Contributor II

Hi, Daniel,

It looks like only ADFLIB support FFT. However, ADFLIB is for S32Z/E/V. S32K3xx_AMMCLIB_v1.1.41 I downloaded does not have ADFLIB. Could you sent me a ADFLIB suitable for S32K3? Thanks.

carolyn_zhang_0-1757315993337.png

 

0 Kudos
Reply

1,713 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @carolyn_zhang,

You are right, for S32K3xx, CMSIS DSP is the optimal option.

AMMCLib does not currently provide FFT for the K3 device and there is no immediate plan to add it. The main reason is that this functionality is already available in the CMSIS-DSP standard library. CMSIS-DSP is provided by compiler vendors, e.g.:

• IAR: https://www.iar.com/knowledge/learn/programming/using-iar-embedded-workbench-for-arm-and-the-cmsis-d...

• Keil: https://www.keil.com/pack/doc/CMSIS/DSP/html/group__groupTransforms.html

The IAR CMSIS-DSP library can be added to the S32K3 S32 Design Studio project from the settings menu:

danielmartynek_0-1757578830215.jpeg

Regards,

Daniel

 

 

0 Kudos
Reply

1,971 Views
carolyn_zhang
Contributor II

Hi, Daniel,

I want to use FFT lib in CMSIS. Which CMSIS lib should I used, CMSIS_6 or CMSIS_DSP? Should I need to download CMSIS_Core?Thanks.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2163369%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20implement%20CMSIS-DSP%20on%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163369%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ECould%20someboady%20tell%20me%20how%20to%20implement%20CMSIS-DSP%20on%20S32DS%3F%20I%20want%20to%20use%20FFT%20on%20S32K3.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2167617%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20CMSIS-DSP%20on%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2167617%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163145%22%20target%3D%22_blank%22%3E%40carolyn_zhang%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EYou%20are%20right%2C%20for%20S32K3xx%2C%26nbsp%3BCMSIS%20DSP%20is%20the%20optimal%20option.%3C%2FP%3E%0A%3CP%3EAMMCLib%20does%20not%20currently%20provide%20FFT%20for%20the%20K3%20device%20and%20there%20is%20no%20immediate%20plan%20to%20add%20it.%20The%20main%20reason%20is%20that%20this%20functionality%20is%20already%20available%20in%20the%20CMSIS-DSP%20standard%20library.%20CMSIS-DSP%20is%20provided%20by%20compiler%20vendors%2C%20e.g.%3A%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20IAR%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.iar.com%2Fknowledge%2Flearn%2Fprogramming%2Fusing-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.iar.com%2Fknowledge%2Flearn%2Fprogramming%2Fusing-iar-embedded-workbench-for-arm-and-the-cmsis-dsp-library%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%E2%80%A2%20Keil%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.keil.com%2Fpack%2Fdoc%2FCMSIS%2FDSP%2Fhtml%2Fgroup__groupTransforms.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.keil.com%2Fpack%2Fdoc%2FCMSIS%2FDSP%2Fhtml%2Fgroup__groupTransforms.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20IAR%20CMSIS-DSP%20library%20can%20be%20added%20to%20the%20S32K3%20S32%20Design%20Studio%20project%20from%20the%20settings%20menu%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1757578830215.jpeg%22%20style%3D%22width%3A%20629px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1757578830215.jpeg%22%20style%3D%22width%3A%20629px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F356447iD5106F758E85C19F%2Fimage-dimensions%2F629x445%3Fv%3Dv2%22%20width%3D%22629%22%20height%3D%22445%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1757578830215.jpeg%22%20alt%3D%22danielmartynek_0-1757578830215.jpeg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2164964%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20CMSIS-DSP%20on%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164964%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20Daniel%2C%3C%2FP%3E%3CP%3EIt%20looks%20like%20only%20ADFLIB%20support%20FFT.%20However%2C%20ADFLIB%20is%20for%20S32Z%2FE%2FV.%26nbsp%3BS32K3xx_AMMCLIB_v1.1.41%20I%20downloaded%20does%20not%20have%20ADFLIB.%20Could%20you%20sent%20me%20a%20ADFLIB%20suitable%20for%20S32K3%3F%20Thanks.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22carolyn_zhang_0-1757315993337.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22carolyn_zhang_0-1757315993337.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F355883iCE58021BA711B665%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22carolyn_zhang_0-1757315993337.png%22%20alt%3D%22carolyn_zhang_0-1757315993337.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2164269%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20CMSIS-DSP%20on%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2164269%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163145%22%20target%3D%22_blank%22%3E%40carolyn_zhang%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThere%20is%20no%20other%20guidelines%20for%20CMSIS%20integration.%3C%2FP%3E%0A%3CP%3EHowever%2C%20NXP%20provides%20AMMCLIB%20for%20S32K3xx%2C%20which%20is%20an%20optimized%20library%20for%20the%20MCU%20series.%3C%2FP%3E%0A%3CP%3EAMMCLIB%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fautomotive-software-and-tools%2Fautomotive-math-and-motor-control-library-ammclib%3AAMMCLIB%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fautomotive-software-and-tools%2Fautomotive-math-and-motor-control-library-ammclib%3AAMMCLIB%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2163590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20CMSIS-DSP%20on%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163590%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20Daniel%2C%3C%2FP%3E%3CP%3EIt%20looks%20like%20the%20article%20is%20too%20old%20for%20reference.%20The%20structure%20of%20CMSIS%20had%20changed.Is%20there%20any%20suggestion%3F%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2163541%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20CMSIS-DSP%20on%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163541%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20Daniel%2C%3C%2FP%3E%3CP%3EI%20want%20to%20use%20FFT%20lib%20in%20CMSIS.%20Which%20CMSIS%20lib%20should%20I%20used%2C%26nbsp%3B%3CSPAN%3ECMSIS_6%20or%20CMSIS_DSP%3F%20Should%20I%20need%20to%20download%20CMSIS_Core%3FThanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2163465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20implement%20CMSIS-DSP%20on%20S32DS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2163465%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F163145%22%20target%3D%22_blank%22%3E%40carolyn_zhang%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EIt%20has%20been%20discussed%20here%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio%2FHow-I-can-use-CMSIS-in-S32K-Design-Studio-with-S32K148-freeRTOS%2Fm-p%2F1333119%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio%2FHow-I-can-use-CMSIS-in-S32K-Design-Studio-with-S32K148-freeRTOS%2Fm-p%2F1333119%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E