7044| 3
|
怎么实现dsp定义变量在指定的地址 ? |
10金钱
最佳答案#pragma DATA_SECTION(S , "newsect") //将数组S分配到数据段newsect
UINT16 S[100]; //定义数组
cmd文件:
MEMORY
{
PAGE1:S_data:origin=0x130000,length=100*2 /*数据段的物理地址*/
}
SECTION
{
newsect:>S_data,PAGE1 /*数据段newsect分配到S_data指示的地址*/
}
| ||
就算有一天梦想成真,而你做好准备了吗?
|
||
发表于 2018-9-19 10:43:23
|
显示全部楼层
| ||
He who fights with monsters should look to it that he himself does not become a monster, when you gaze long into the abyss, the abyss also gazes into you.
过于执着就会陷入其中,迷失自己,困住自己。 |
||
发表于 2018-9-20 02:28:52
|
显示全部楼层
| ||
| ||
就算有一天梦想成真,而你做好准备了吗?
|
||
|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )
GMT+8, 2024-11-23 01:43
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网