2812在仿真的时候运行现象正确,换一个.cmd文件烧写时出现一个初始化RAM的警告如下:
warning:Because this program contains initialized RAM data it may run successfully under Code Composer Studio. If your Flash program requires initialized data in RAM, you will need to write Flash code to initialize RAM.
点击OK后,程序可以成功烧写。但是上电运行却没有现象了!
以下是我使用的.cmd
/**********************************************************************
* File: f2812.cmd -- Linker command file for Boot to Flash bootmode.
* History: 09/08/03 - original (based on DSP28 header files v1.00, D. Alter)
* 02/14/05 - made consistent with DSP/BIOS linkage allocation (D. Alter)
**********************************************************************/
/* ZONE7 : origin = 0x3FC000, length = 0x003FC0 /* XINTF zone 7 available if MP/MCn=1 */
BOOTROM : origin = 0x3FF000, length = 0x000FC0 /* boot ROM available if MP/MCn=0 */
RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM (MP/MCn=0) or XINTF zone 7 (MP/MCn=1) */
VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM (MP/MCn=0) or XINTF zone 7 (MP/MCn=1) */