BEGIN_FLASH : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for \"boot to flash\" bootloader mode. */
BEGIN_H0 : origin = 0x3F8000, length = 0x000002 /* Part of H0. Used for \"boot to H0\" bootloader mode. */
RAMH0 : origin = 0x3F8002, length = 0x001FFE /* H0 SARAM */
/* ZONE7 : origin = 0x3FC000, length = 0x003FC0 /* XINTF zone 7 available if MP/MCn=1 */
ROM : 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) */
{
.......
codestart : > BEGIN, PAGE = 0
}
4>当需要用片内18K的RAM时行仿真时,可在0x3f7ff6处预先烧写一转跳指令(只需烧写一次).如:
LB 0x3F8000
使程序初始化后转跳至RAM空间.然后在RAM空间内写入仿真程序即可,此时.CMD 头文件如下:
MEMORY
{
PAGE 0 :
/* For this example, H0 is split between PAGE 0 and PAGE 1 */
/* BEGIN is used for the \"boot to HO\" bootloader mode */
/* RESET is loaded with the reset vector only if */
/* the boot is from XINTF Zone 7. Otherwise reset vector */
/* is fetched from boot ROM. See .reset section below */