This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] CC2642R: CC13x2/CC26x2 器件上的 FFT

Part Number: CC2642R
Other Parts Discussed in Thread: CC1312R, CC2652R7, CC1352R, CC1352P, CC2652P, CC2652R

下面提供了利用 CC2642R 的 DSP 功能运行 FFT 的指南。

注意:该指南同样适用于所有具有 Cortex M4F 的 CC13xx 和 CC26xx 器件,其中包括 CC1312R、CC1352R、CC1352P、CC1352R7、CC2642R、CC2652R、CC2652P、CC2652R7 等

             a. 如果需要这里是我的 <SDK>\source\third_party\cmsis 文件夹cmsis.zip 的内容

  • 将它们存储在 <SDK>\source\third_party\cmsis\include 中
  • 打开 CCS,导入空示例
  • 添加库:“Project”>“Properties”>“Build”>“Arm Linker”>“File Search Path”。添加 third_party/cmsis/lib/math.lib

  • 在工程中新建一个名为 CMSIS 的文件夹,用于存储 CMSIS 库的头文件

  • 将 <SDK>\source\third_party\cmsis\include 中存储的文件复制到此新文件夹中
  • 将此文件夹添加到搜索路径:“Project”>“Properties”>“Build”>“Arm Compiler”>“Include Options”

我已使用 SDK 中提供的“empty”示例 (<SDK>\examples\rtos\<DEVICE>\drivers\empty) 对此进行了测试,并在其中添加了随库提供的示例。

以下是我的 empty.c 文件的修改内容:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* Copyright (c) 2015-2019, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

您可能还需要查看此帖子、此主题和此应用手册以了解更多详细信息。

  • 我们建议您在发布新问题之前先搜索 E2E支持论坛,E2E支持论坛已经拥有数十万个已得到解答的话题。  这通常是解决问题的最快方法。

x 出现错误。请重试或与管理员联系。