完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
本帖最后由 mr.pengyongche 于 2013-4-30 02:55 编辑
用的是F2802 ,要仿真调试程序,由于RAM太小,程序量大,无法在RAM仿真,只能load到FLASH中调试,CMD配置如下 SECtiONS { /* Allocate program areas: */ .cinit : > FLASHBC PAGE = 0 .pinit : > FLASHBC, PAGE = 0 .text : > FLASHBC PAGE = 0 codestart : > BEGIN PAGE = 0 ramfuncs : LOAD = FLASHD, RUN = RAML0, LOAD_START(_RamfuncsLoadStart), LOAD_END(_RamfuncsLoadEnd), RUN_START(_RamfuncsRunStart), PAGE = 0 csmpasswds : > CSM_PWL PAGE = 0 csm_rsvd : > CSM_RSVD PAGE = 0 /* Allocate uninitalized data sections: */ .stack : > RAMM0 PAGE = 1 .ebss : > RAMM0 PAGE = 1 .esysmem : > RAMM1 PAGE = 1 /* Initalized sections go in Flash */ /* For SDFlash to program these, they must be allocated to page 0 */ .econst : > FLASHBC PAGE = 0 .switch : > FLASHBC PAGE = 0 /* Allocate IQ math areas: */ IQmath : > FLASHBC PAGE = 0 /* Math Code */ IQmathTables : > ROM PAGE = 0, TYPE = NOLOAD /* Math Tables In ROM */ /* .reset is a standard section used by the compiler. It contains the */ /* the address of the start of _c_int00 for C Code. /* /* When using the boot ROM this section and the CPU vector */ /* table is not needed. Thus the default type is set here to */ /* DSECT */ .reset : > RESET, PAGE = 0, TYPE = DSECT vectors : > VECTORS PAGE = 0, TYPE = DSECT } 主程序也加了 memcpy(&RamfuncsRunStart,&RamfuncsLoadStart,&RamfuncsLoadEnd - &RamfuncsLoadStart); InitFlash(); 在load几次成功后再load就出现如下报 |
|
相关推荐
|
|
找个好的板子,试一下下载线,确保下载线是好的
|
|
|
|
|
|
基于 DSP5509 进行数字图像处理中 Sobel 算子边缘检测的硬件连接电路图
3099 浏览 0 评论
775 浏览 0 评论
普中科技F28335开发板中,如何使用aic23播放由代码生成的正弦波
3532 浏览 0 评论
4300 浏览 1 评论
1341 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-19 04:39 , Processed in 0.468675 second(s), Total 68, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191