Using CMSIS-DSP With MCUXpresso SDK and IDE - NXP Community
Using CMSIS-DSP With MCUXpresso SDK and IDE - NXP Community
Iniciar sesión para crear y calificar contenido y para seguir, marcar y compartir contenido con otros miembros.
Me gusta • 1 Comentario • 1
Follow these steps to link the CMSIS-DSP library to a MCUXpresso SDK 2.x project using the MCUXpresso
IDE. The steps described in the document were done using the MKL25Z MCU like the one in the FRDM-KL25Z
board, but the same principles are applicable to any Kinetis MCU.
Please make sure you have already created and installed the corresponding MCUXpresso SDK package to the
MCUXpresso IDE, you can use following links as reference:
Getting Started with MCUXpresso and FRDM-K64F
Generating a downloadable MCUXpresso SDK v.2 package
1) Click on the Import SDK example option from the Quickstart menu:
https://community.nxp.com/docs/DOC-335465 1/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
https://community.nxp.com/docs/DOC-335465 2/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
1) The first step is to create a build variable that will be used to specify the path of the DSP library. Go to
Project > Properties and under C/C++ Build select Build Variables and click on Add:
2) A new window will open, specify the name of the build variable, its type and value, the Value is the location
of your CMSIS folder:
NOTE: The SDK_2.2_FRDM-KL25Z package was previously unzipped to the C:\nxp folder
https://community.nxp.com/docs/DOC-335465 3/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
3) The new variable should be listed as in the image below, click on Apply:
4) Go to C/C++ Build > Settings > MCU Linker > Libraries and specify the precompiled library to be used and
its path:
https://community.nxp.com/docs/DOC-335465 4/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
Library name: arm_cortexM0l_math.The M denotes the ARM core, while the ‘l’ means ‘little endian’.
Path: ${SDK_2.2_KL25Z_CMSIS_PATH}\Lib\GCC
5) Now go to C/C++ Build > Settings > MCU C Compiler > Preprocessor and specify the following macro:
ARM_MATH_CM0PLUS: Tells the CMSIS library which ARM Cortex core I’m using.
https://community.nxp.com/docs/DOC-335465 5/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
1) For this project the “FIR Lowpass Filter” example will be used, it can be found on the following path:
${SDK_2.2_KL25Z_CMSIS_PATH}\DSP_Lib\Examples\arm_fir_example\ARM
2) The first step is to copy the source files of the example to the project, the files that need to be copied are:
arm_fir_example_f32.c
arm_fir_data.c
math_helper.c
math_helper.h
https://community.nxp.com/docs/DOC-335465 6/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
3) The next step is to copy the SDK include files and initialization functions from the hello_world.c file to the FIR
example file:
#include "fsl_device_registers.h"
#include "fsl_debug_console.h"
#include "board.h"
#include "pin_mux.h"
BOARD_InitPins();
BOARD_BootClockRUN();
BOARD_InitDebugConsole();
https://community.nxp.com/docs/DOC-335465 7/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
https://community.nxp.com/docs/DOC-335465 8/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
Related links:
Generating a downloadable MCUXpresso SDK v.2 package
Getting Started with MCUXpresso and FRDM-K64F
Adding CMSIS-DSP Library to a KSDK 2.x project in Kinetis Design
Studio
ADJUNTOS
RESULTADOS
Útil(1)
https://community.nxp.com/docs/DOC-335465 9/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
Clasificaciones:
(0 Clasificaciones)
1 comentario
I'm running Kinetis Design Studio 3.2, MQX 4.2 and SDK 1.x project. There is SDK2.x but it doesn't
seem to support K70F120M board.
Are you instructions similar in that I can just link it like you did?
Acciones Me gusta • 1
Contenido relacionado
Quick Start Guide – Using MCUXpresso SDK with PINs&CLOCKs Config Tools
Contenido recomendado
https://community.nxp.com/docs/DOC-335465 10/11
7/11/2019 Using CMSIS-DSP with MCUXpresso SDK and IDE | NXP Community
I am having an issue regarding running my python file on the Bluebox2.0. Can someone help me address the
issue?
Enlaces entrantes
FOLLOW NXP
NEWS
Look at our latest Press Releases and Product News. Read more
https://community.nxp.com/docs/DOC-335465 11/11