UNION
run = PIE_VECT, PAGE = 1
{ PieVectTableFile
GROUP
{
EmuKeyVar
EmuBModeVar
FlashCallbackVar
FlashScalingVar
} 这个语法是什么意思啊?
}
Forrest:
在PIE_VECT中,按顺序放入EmuKeyVar,EmuBModeVar, FlashCallbackVar ,FlashScalingVar
具体说明如下:
7.5.6 Using UNION and GROUP StatementsTwo SECTIONS statements allow you to conserve memory: GROUP and UNION. Unioning sectionscauses the linker to allocate them to the same run address. Grouping sections causes the linker toallocate them contiguously in memory. Section names can refer to sections, subsections, or archive librarymembers.
详情可以参考下面的文档:
http://www.ti.com/litv/pdf/spru513e
UNION
run = PIE_VECT, PAGE = 1
{ PieVectTableFile
GROUP
{
EmuKeyVar
EmuBModeVar
FlashCallbackVar
FlashScalingVar
} 这个语法是什么意思啊?
}
Blake Ma:
您提到的这段代码主要作用是对EMU_KEY,EMU_BMODE,Flash_CPUScaleFactor和Flash_CallbackPtr四个寄存器进行地址分配。
在芯片的数据手册中关于Boot ROM的介绍中,有提到这四个寄存器的存储地址: