A Recommended Method for Porting the New DSP Library Source Code

Note:

1. The DSP library in the new CMSIS V5.6 is much more user-friendly than previous versions.

2. This post shares a method for adding source code. Previously, we used libraries, which made it inconvenient to view the source code.

3. You can also refer to the first version of the DSP tutorial, which is available in our V5 cloud drive. The second version of the DSP is already in production.

4. Each example has been created in three versions: AC5 and AC6 for MDK5, as well as IAR, providing both source code and library porting methods for each version.

Note: The examples in this post and the first version of the DSP tutorial can be downloaded via the original text link at the end of this post.

A Recommended Method for Porting the New DSP Library Source Code

Precautions:

1. For MDK5, please use version 5.26 or higher, and for IAR, please use version 8.3 or higher.

2. Due to the strong performance of AC6 in floating-point processing, each example will definitely have an AC6 version. However, there are two points to note when using AC6:

(1) Make sure the project directory does not contain Chinese paths and is not too long, otherwise it will cause issues with “go to def” and debugging.

(2) Using Chinese characters in GBK encoded files will result in errors; please change it to UTF-8. Therefore, when printing via serial port, the serial assistant used must support UTF-8. We recommend using SecureCRT with the following settings:

A Recommended Method for Porting the New DSP Library Source Code

A Recommended Method for Porting the New DSP Library Source Code

V7 Program Templates:

V7-200_DSP Program Template (Source Code Method)

V7-201_DSP Program Template (Library Method)

V6 Program Templates:

V6-200_DSP Program Template (Source Code Method)

V6-201_DSP Program Template (Library Method)

V5 Program Templates:

V5-200_DSP Program Template (Source Code Method)

V5-201_DSP Program Template (Library Method)

A Recommended Method for Porting the New DSP Library Source Code

Using the library method is like this; it was the method used early on:

A Recommended Method for Porting the New DSP Library Source Code

And the source code uses this method:

A Recommended Method for Porting the New DSP Library Source Code

The program directly associates the C files in the following manner; if each C file is added separately, it would be too many.

A Recommended Method for Porting the New DSP Library Source Code

Leave a Comment