Other Parts Discussed in Thread:SYSBIOS
关于如何从头开始编写毫米波传感器应用,是否有相关指南(帮助了解演示版的工作原理)?
Cherry Zhou:
答:以下是为毫米波传感器应用创建 CCS 工程的步骤
1) 打开 CCS GUI 并确保 CCS 中安装了最新版本的“mmwave radar device support”。
如何检查是否已安装:打开“Menu Help”->“About Code Composer Studio”->“Installation Details”:搜索“mmwave”。
安装方法:打开“Menu”->“Help”->“Install New Software”:选择“All Available Site”并搜索和选择“mmWave Radar Device Support”。安装所选的工具。2) 选择“File”->“New”->“CCS Project”
在弹出窗口中,选择“Target”为“mmWave Sensors”,并选择所需的器件类型
Tool-Chain:按快照操作
打开“Project templates”->“SYS/BIOS”->“TI Target Examples”->“Typical”
如果所选器件上有 DSP,则遵循 C67xx 工程的类似设置
点击“Next”并提供 Cortex-R 和 C67XX 内核的目标和平台信息
Cortex-R- Target-> ti.targets.arm.elf.R4F; Platform-> ti.platforms.cortexR:AWR16XX:false:200
C67XX- Target-> ti.targets.elf.C674; Platform-> ti.platforms.c6x:AWR16XX:false:600
点击“Finish”创建 MSS 和 DSS CCS 工程。3) 这些步骤将为毫米波传感器创建基本的 sysbios 应用,其中的默认链接器命令和 sysbios 配置 (app.cfg) 是从 CCS 生成的。用户需要根据其应用需求修改这些文件。
4) 按以下路径添加搜索路径、宏定义和库:“Project Properties”->“Build”->“ARM/C6000 compiler”->“Include Options”;“ProjectProperties”->“Build”->“ARM/C6000 Compiler”->“Predfined Symbols”;“Project Properties”->“Build”->“ARM/C6000 Linker”->“File Search Path”。请参阅任何 TI-Rex 实验室 CCS 工程进行参考。
5) 这是向应用中添加基本的启动代码片段(在所有应用中通用)。
MSS (main.c)
DSS (main.c)
#include <ti/drivers/soc/soc.h>
#include <ti/drivers/esm/esm.h>
#include <ti/common/sys_common.h>
int main(void)
{
int32_t errCode;
SOC_Handle socHandle;
SOC_Cfg socCfg;
/* Initialize the ESM: Don’t clear errors as TI RTOS does it */
ESM_init(0U);
/* Initialize the SOC confiugration: */
memset ((void *)&socCfg, 0, sizeof(SOC_Cfg));
/* Populate the SOC configuration: */
socCfg.clockCfg = SOC_SysClock_INIT;
socCfg.mpuCfg = SOC_MPUCfg_CONFIG;
/* require to unhalt the DSS if this core is available in selected device */
socCfg.dssCfg = SOC_DSSCfg_UNHALT;
/* Initialize the SOC Module: This is done as soon as the application is started
* to ensure that the MPU is correctly configured.*/
socHandle = SOC_init (&socCfg, &errCode);
#include <ti/drivers/soc/soc.h>
#include <ti/drivers/esm/esm.h>
#include <ti/common/sys_common.h>
int main (void)
{
int32_t errCode;
SOC_Handle socHandle;
SOC_Cfg socCfg;
/* Initialize and populate the demo MCB */
memset ((void*)&gMmwDssMCB, 0, sizeof(MmwDemo_DSS_MCB));
/* Initialize the SOC confiugration: */
memset ((void *)&socCfg, 0, sizeof(SOC_Cfg));
/* Populate the SOC configuration: */
socCfg.clockCfg = SOC_SysClock_BYPASS_INIT;
/* Initialize the SOC Module: This is done as soon as the application is started
* to ensure that the MPU is correctly configured.*/
socHandle = SOC_init (&socCfg, &errCode);
6) 现在,您甚至可以参考毫米波演示或任何 TI-Rex 实验室应用,从而在应用中嵌入多种外设和信号处理特性。