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.

CMD文件语法



  UNION

 run = PIE_VECT, PAGE = 1  

  {       PieVectTableFile      

 GROUP      

{         

EmuKeyVar         

EmuBModeVar         

 FlashCallbackVar         

FlashScalingVar      

 }    这个语法是什么意思啊?

}

  • 在PIE_VECT中,按顺序放入EmuKeyVar,EmuBModeVar, FlashCallbackVar ,FlashScalingVar   

     

    具体说明如下:

    7.5.6 Using UNION and GROUP Statements
    Two SECTIONS statements allow you to conserve memory: GROUP and UNION. Unioning sections
    causes the linker to allocate them to the same run address. Grouping sections causes the linker to
    allocate them contiguously in memory. Section names can refer to sections, subsections, or archive library
    members.

    详情可以参考下面的文档:

    http://www.ti.com/litv/pdf/spru513e

  • 您提到的这段代码主要作用是对EMU_KEY,EMU_BMODE,Flash_CPUScaleFactor和Flash_CallbackPtr四个寄存器进行地址分配。

    在芯片的数据手册中关于Boot ROM的介绍中,有提到这四个寄存器的存储地址: