完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
1、将main中的数组变量放到RAML0段去:
#pragma DATA_SECtiON(array,"mysect") _iq array[16][16]; 然后在CMD文件中的section部分添加以下段,请问是在PAGE 0中还是PAGE 1 中定义段mysect? mysect : > RAML0, PAGE = 0 /* Program Memory */ 或PAGE 1 /* Data Memory */ 2、 MEMORY [ PAGE 0: /* Program Memory */ IQTABLES : origin = 0x3FE000, length = 0x000B50 /* IQ Math Tables in Boot ROM */ IQTABLES2 : origin = 0x3FEB50, length = 0x00008C /* IQ Math Tables in Boot ROM */ IQTABLES3 : origin = 0x3FEBDC, length = 0x0000AA /* IQ Math Tables in Boot ROM */ BOOTROM : origin = 0x3FF27C, length = 0x000D44 /* Boot ROM */ ] IQmath : > FLASHCD PAGE = 0 /* Math Code */ IQmathTables : > IQTABLES, PAGE = 0, TYPE = NOLOAD /* Uncomment the section below if calling the IQNexp() or IQexp() functions from the IQMath.lib library in order to utilize the relevant IQ Math table in Boot ROM (This saves space and Boot ROM is 1 wait-state). If this section is not uncommented, IQmathTables2 will be loaded into other memory (SARAM, Flash, etc.) and will take up space, but 0 wait-state is possible. */ IQmathTables2 : > IQTABLES2, PAGE = 0, TYPE = NOLOAD [ IQmath.lib ] /* Uncomment the section below if calling the IQNasin() or IQasin() functions from the IQMath.lib library in order to utilize the relevant IQ Math table in Boot ROM (This saves space and Boot ROM is 1 wait-state). If this section is not uncommented, IQmathTables2 will be loaded into other memory (SARAM, Flash, etc.) and will take up space, but 0 wait-state is possible. */ IQmathTables3 : > IQTABLES3, PAGE = 0, TYPE = NOLOAD [ IQmath.lib ] IQmathTablesRam : LOAD = FLASHGH, PAGE = 1 RUN = RAML1L2L3,PAGE = 1 LOAD_START(_IQmathTablesRamLoadStart), LOAD_END(_IQmathTablesRamLoadEnd), RUN_START(_IQmathTablesRamRunStart) 这几个段IQmath、IQmathTables、IQmathTables2、IQmathTables3、IQmathTablesRam有什么区别,分别是用来做什么的? [ IQmath.lib IQmathTablesRamLoadStart、IQmathTablesRamLoadEnd要在main中哪里声明的? |
|
相关推荐
3 个讨论
|
|
guigui_7044 发表于 2018-8-22 09:30 IQmathTablesRamLoadStart、IQmathTablesRamLoadEn是在哪个文件中声明的? 而RamfuncsLoadStart是在DSP2803x_GlobalPrototypes.h中声明的。好像是要自己在DSP2803x_GlobalPrototypes.h声明? // External symbols created by the linker cmd file // DSP28 examples will use these to relocate code from one LOAD location // in Flash to a different RUN location in internal // RAM extern Uint16 RamfuncsLoadStart; extern Uint16 RamfuncsLoadEnd; extern Uint16 RamfuncsRunStart; |
|
|
|
|
|
|
|
rxb88 发表于 2018-8-22 09:35 Haypin, 只要在使用到这些变量的源文件之前,对这些变量进行声明就可以了,不管是使用include 头文件的方式,还是直接在main文件中进行声明,都可以。 Eric - ERIC |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
549 浏览 0 评论
1613 浏览 0 评论
2047 浏览 0 评论
为啥BQ7693003DBTR芯片在和BQ769X0盒子通讯时收不到信号?
1513 浏览 0 评论
DSP 28027F 开发板 XDS100v2调试探针诊断日志显示了 Error -150 (SC_ERR_FTDI_FAIL)如何解决
1337 浏览 0 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
1756浏览 29评论
2781浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
1723浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
1634浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
1645浏览 13评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 00:13 , Processed in 0.916069 second(s), Total 60, Slave 47 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2140