首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

挑战高手

You may need to setup a .gel file to initialize the registers so
that your ram is visible to CCS at reset. Here's an example of
reload.gel file that adds menus to the GEL menu. This one is used without external ram, but it should point you in the right
direction.

#define PMST 0x1d
#define PMST_FLASH_VAL 0xFFC0
#define SWWSR 0x28
#define SWWSR_VAL 0x7FFF
#define BSCR 0x29
#define BSCR_VAL 0x02

hotmenu Reset_Extended()
{
*(int *)PMST = PMST_FLASH_VAL;
*(int *)SWWSR = SWWSR_VAL;
*(int *)BSCR = BSCR_VAL;
GEL_Reset();

GEL_XMDef( 0, 0x1E, 1, 0x8000, 0x7F );
GEL_XMOn();
GEL_MapAdd( 0x18000, 1, 0x8000, 1, 1 );
GEL_MapAdd( 0x28000, 0, 0x8000, 1, 1 );
GEL_MapAdd( 0x38000, 0, 0x8000, 1, 1 );
}

Why can you not use DSK schematic as your guide? Just copy the external
SRAM
design and connections on that board *exactly* and then use the same .gel file
in
CCS. If you follow the TI example, you can't miss.


海潮 http://blog.sina.com.cn/m/haichao
返回列表