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.

F28379D RAM 初始化

Other Parts Discussed in Thread: C2000WARE您好,susan,我在编写28377D二次boot时发现一些问题,应该是跟跳转到app代码后,没有清除RAM有关,麻烦问一下,RAM_INITd的代码在ROM代码的哪里可以查到?谢谢了
  • 这个我记得是没有C源码的,只有汇编。

    您可以连接板子后以load symbols的方式加载out文件

    默认路径为 C:\ti\c2000\C2000Ware_3_01_00_00\libraries\boot_rom\f2837xd\revB\rom_sources\ccs_files\cpu01\Release

    加载后调试如图,可以发现

    DxINITDONE 0x0000000F Dedicated RAM InitDone Status Register [Memory Mapped]

  • 另外在在<CCS安装文件夹> \ ccs_base \ emulation \ gel文件夹中找到F28377D_cpu1.gel和F28377D_cpu2.gel文件。使用文本编辑器打开并向下滚动到每个中的OnTargetConnect()函数。对于cpu1.gel,可以看到:

    *(int *)0x5F412 =0x000F; /* RAM INIT FOR M0/M1/D0/D1 Memory */
    *(int *)0x5F432 =0x003F; /* RAM INIT FOR LS0..LS5 Memory */
    *(int *)0x5F452 =0xFFFF; /* RAM INIT FOR GS0..GS15 Memory */