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

📄 ptc_xctu_zigbee.prm

📁 nRF24E1 sample xBee development
💻 PRM
字号:
/************************************************************************************
* This file contains some basic linker parameters.
*
************************************************************************************/

NAMES
// Do not remove this block/section.
// Description: The NAMES block contains a list of binary files building the application. This block
// is mandatory and can only be specified once in a prm file.
// Additional files may be specified by the option -Add. The object files specified with the option
// -Add are linked before the files mentioned in the NAMES block. With the option -Add, additional
// files can be added to a project without modifying the link parameter file.
// If all binary files should be specified by the command line option -add, then an empty NAMES
// block (just NAMES END) must be present in the link parameter file. Object files added with this
// option are linked before the object files specified in the NAMES block.
END

// **************************************************************************

// Memory map for HCS08 GB60. All memory areas are define below i.e. registers and stack etc.
// are shown.

// Options
// READ_WRITE	is for normal variables
// READ_ONLY	is for const variables and code
// NO_INIT	is for uninitialized variables.

SECTIONS 
	DIRECT_PAGE_REGISTERS	    = READ_WRITE 0x0000 TO 0x007F; // This section contains often used registers
	DIRECT_ADDRESSING_MEMORY    = READ_WRITE 0x0080 TO 0x00FF; // Direct addressing memory
	USER_STACK		    = READ_WRITE 0x0100 TO 0x02AF; // User stack
	STATIC_USER_MEMORY	    = READ_WRITE 0x02B0 TO 0x107D; // Static user memory
	NV_RAM_POINTER_RAM          = NO_INIT    0x107E TO 0x107F; // Static user memory

// keep these three sections contiguous, see NV_Data.h
// match their sizes with the declarations in NV_Data.h
	BOOTLOADER_MAC_NV_RAM0      = READ_ONLY  0x1080 TO 0x110C; // Flash memory
	BOOTLOADER_PHY_NV_RAM0      = READ_ONLY  0x110D TO 0x113B; // Flash memory
	BOOTLOADER_APP_NV_RAM0      = READ_ONLY  0x113C TO 0x11DB; // Flash memory

// match the size of this section with the declaration in NV_Data.h
// start this section on a page boundary
	BOOTLOADER_APP_NV_RAM1      = NO_INIT    0x1200 TO 0x13FF; // Flash memory (erased)

// see OSAL_Nv.c
// start this section on a page boundary
	OSAL_NV			    = NO_INIT    0x1400 TO 0x17FF; // Flash memory (erased)

	HIGH_PAGE_REGISTERS	    = READ_WRITE 0x1800 TO 0x182B; // High page register section
	FLASH2 		            = READ_ONLY  0x182C TO 0xFDBE; // Flash section

	IRQ_VECTORS_TABLE	    = READ_ONLY  0xFDC0 TO 0xFDFD; // ISR vectors
	RESET_VECTOR		    = READ_ONLY  0xFDFE TO 0xFDFF; // System reset vector

// The MaxStream bootloader occupies the last page;
// we make allocation for the nv_registers and protected configuration structure within that page.
	//MAXSTREAM_BOOTLOADER1	    = NO_INIT    0xFE00 TO 0xFFAF; // MaxStream Bootloader region
	//NV_REGISTERS		    = READ_ONLY  0xFFB0 TO 0xFFBF; // Non-volatile registers
	//MAXSTREAM_BOOTLOADER2       = NO_INIT    0xFFC0 TO 0xFFFF; // MaxStream Bootloader region
// The address of PROTECT_CONF_ROM is needed by ZMain.c
	//PROTECT_CONF_ROM            = NO_INIT    0xFFEA TO 0xFFFD; // MaxStream Protected Configuration
	//MAXSTREAM_BOOTLOADER3       = NO_INIT    0xFFFE TO 0xFFFF; // MaxStream Bootloader region
END

// **************************************************************************

// Here it is listed how the variables and code must be allocated.
PLACEMENT
	MY_ZEROPAGE		    INTO DIRECT_ADDRESSING_MEMORY;
	//CPU_DIRECT_REGS		    INTO DIRECT_PAGE_REGISTERS;
	//CPU_HI_REGS		    INTO HIGH_PAGE_REGISTERS;
	DEFAULT_RAM                 INTO DIRECT_ADDRESSING_MEMORY, STATIC_USER_MEMORY;
	DEFAULT_ROM		    INTO FLASH2;
	SSTACK 			    INTO USER_STACK; // Put stack in user stack section
	NV_RAM_POINTER		    INTO NV_RAM_POINTER_RAM;
	BOOTLOADER_MAC_NV_DATA0	    INTO BOOTLOADER_MAC_NV_RAM0;
	BOOTLOADER_PHY_NV_DATA0	    INTO BOOTLOADER_PHY_NV_RAM0;
	BOOTLOADER_APP_NV_DATA0     INTO BOOTLOADER_APP_NV_RAM0;
	BOOTLOADER_APP_NV_DATA1     INTO BOOTLOADER_APP_NV_RAM1;
	//NV_REGISTERS_SECTION        INTO NV_REGISTERS;
	IRQ_VECTOR_SECTION	    INTO IRQ_VECTORS_TABLE;
	RESET_VECTOR_SECTION	    INTO RESET_VECTOR;
	//PROTECT_CONF                INTO PROTECT_CONF_ROM;
END

// **************************************************************************

⌨️ 快捷键说明

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