Study_Stellaris 发表于 2015-6-9 10:39
CCS 也原理一样,需要检查一下 map 文件,这个地方也是需要配置的,你需要告诉编译器,编译出来的程序的起始位置不再是从 0 开始,这一点,你只是在程序里边定义了还不够,必须设置编译器。
您说的map文件是指工程里的cmd文件吗?这里面有这样的代码:
/* The starting address of the application. Normally the interrupt vectors */
/* must be located at the beginning of the application. */
#define APP_BASE 0x00002800
#define RAM_BASE 0x20000000
/* System memory map */
MEMORY
{
/* Application stored in and executes from internal flash */
FLASH (RX) : origin = APP_BASE, length = 0x0000FFFF - APP_BASE
/* Application uses internal RAM for data */
SRAM (RWX) : origin = RAM_BASE, length = 0x20005FFF - RAM_BASE
}