[AM5728 调试过程] #4 Processor SDK RTOS Examples [Windows 平台]

    xiaoxiao2022-07-13  166

    参考: Processor SDK RTOS Examples

    注:有时可能需要科学上网


    ARM Cortex-A15

    这里,使用 SYS/BIOS 例程中的 Hello Example 做演示,所用芯片是 AM5728,CCS 版本为 7.4

    先找到对应的例程:CCS-View-Resource Explorer Classic(CCS_v6里应是 Resource Explorer Examples)-

    SYS/BIOS-AM572x Cortex A15-AM5728-Cortex A[ARM]-GNU Target Examples-Generic Examples-Hello Example

    点击 Step 1: Import the example project into CCS,即通过 SDK/RTOS Examples 创建所需工程

    点击 Finish,即自动创建一个匹配的 CCS 工程

    为了最终可以在 CCS 的 Colsole 终端中看得到输出的 "Hello World",在工程的 hello.cfg 文件中添加此条代码

    var SemiHostSupport = xdc.useModule('ti.sysbios.rts.gnu.SemiHostSupport');

    对应地,右键此工程-Show Build Settings...-Build-GNU Linker-Libraries,去除 nosys 改为 rdimon

    点击 Step 2: Build the imported project,也可以直接右键新建的该工程-Build Project

    点击 Step 3: Debugger Configuration,创建此工程的 Target Configuration,也可以在 File-New-Target Configuration File 处创建

    随后在 Target Configurations 页面,右键该新建的 .ccxml 文件,点击 Launch Selected Configuration

    随即进入 Debug 界面

    右键 CortexA15_0-Connect Target

    有时会显示 No Source available 的错误,一般 Reload Program 就可以解决此问题

    连接正常的 Target Configuration

    运行,即可看到输出窗口的 "hello world"


    ARM Cortex-M4 和 DSP C66x

    其过程基本相同,不再赘述


     

    最新回复(0)