⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.spc

📁 dragon ball vz328 上的一个例子程序。 用于做手持仪表用。
💻 SPC
字号:
/******************************************************************************

	This SPC file is designed for the this sample program for both 1 bit/pixel 
	and 2 bits/pixel, and 
	This file is set with the following default value:
		RAM size = 4M byte, 
		Code Address start at 0x400000
		LCD width = 160 pixels
		LCD height = 220 pixels
    	Please adjust the above value to meet your platform. 
    
	For SingleStep Debugging System(SDS) user only:
	How to optimum malloc size after debugging stage
	1. First set the RAM size to 4M, so as the malloc size
	2. Error message will be generated after linking
	3. Then, calculate the optimum malloc size by substracting
	   exceeding bytes from the total memory size
	4. Finally write the optimum size in the malloc field
	5. This optimum need to be calculated again after modified 
	   source code.  So it is recommand to found it after debugging 
	   stage.
	6. For more detail, please refer to the Programmer's Manual Ch 34.3
    
******************************************************************************/
partition { overlay {
	region {} reset[addr=0];                    /* reset vector */
	region {} rom_code;     					/*  start of bootstrap code */
        region {} code[roundsize=4];            /* executable code */
	region {} const;                            /* constant data, size=8K */
	region {} string;                           /* constant strings size=8K*/
	region {} def;                              /* executable code */
	region {} data[roundsize=4];                /* initialized on reset */
	region {} ram[roundsize=4]; 				/* zeroed on reset */
	region {} malloc[size=0x400000];            /* malloc space */
	region {} stack[size=0x10000];              /* stack */
	STKTOP = $;                                 /* SP reset value */
	LCDPHYSWIDTH = 320;                       /* LCD display width  */
    LCDPHYSHEIGHT = 240;                     /* LCD display height  */
	LCDVIRTWIDTH = 320;                      /* LCD virtual width  */
    LCDVIRTHEIGHT = 240;                      /* LCD virtual height  */
    UARTRCVBUF =  256;							/* set to 17 is only for display more tidily */
    											/* in order to optimize the transmission speed*/
    											/* a great value should be set, eg. UARTRCVBUF=256 */
    UARTCHOICE = 1;                             /* UART flag to choose using the UART 1 or UART 2 (VZ only) */											
	DATA = $;                                   /* "data" download addr */
} example; } RAM[addr=0x1000, size=0x600000]; /* size is equal to the size of DRAM */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -