📄 32k.lkf
字号:
#/*********************** (c) 2004 STMicroelectronics *************************
#
# PROJECT : 3-phase AC induction motor drive Software Library
# COMPILER : COSMIC
#
# VERSION: 1.0.0
#
# CREATION DATE : April 2004
#
# AUTHOR: V. Onde / Microcontroller Division Applications
# Consumer & Micro Group
#
# DESCRIPTION: Link Command File for COSMIC ST7 C-Compiler
#
#*****************************************************************************/
# SEGMENT DEFINITION (.text, .const, .data, .bss, .bsct, .ubsct are c compiler perdefined sections)
+seg .text -b0x8000 -m0x8000 -nCODE -sROM # executable code
+seg .const -aCODE -it -sROM # constants and strings
+seg .bsct -b0x0080 -m0x007F -nZPAGE -sRAM # initialized variables in SHORT range
+seg .ubsct -aZPAGE -nUZPAGE -sRAM # uninitialized variables in SHORT range
+seg .share -aUZPAGE -is -sRAM # shared segment (defined when using compact or memory models only)
+seg .data -b0x0200 -m0x27F -nIDATA -sRAM # NO initialized variables
+seg .bss -aIDATA -nUDATA -sRAM # uninitialized variables
# STARTUP FILE
C:\COSMIC\CXST7\lib\crts.st7 # startup routine without RAM initialization
#/*****************************************************************************
#
# LIST OF OBJECT FILES
#
# ****************************************************************************/
# OBJECT FILES
..\..\object\cosmic\main.o
..\..\object\cosmic\acmotor.o
..\..\object\cosmic\pwmart.o
..\..\object\cosmic\mtc.o
..\..\object\cosmic\sci.o
..\..\object\cosmic\ports.o
..\..\object\cosmic\adc.o
..\..\object\cosmic\ST7_Misc.o
# OBJECT FILES END
# INTEGER LIBRARY FOR SMALL MEMORY MODEL
C:\COSMIC\CXST7\lib\libims.st7
# MACHINE LIBRARY FOR ALL MEMORY MODELS
C:\COSMIC\CXST7\lib\libm.st7
# INTERRUPT/RESET VECTORS
+seg .const -b0xFFE0 -k # vector start address
..\..\object\cosmic\vector.o # interrupt vectors
#-k mark the segment as a root segment for the unused section
#suppression. This flags is usually applied on the reset and
#interrupt vectors section, and as soon as it is specified at
#least once in the linker command file, enables the section
#suppression mechanism. This option can be used on any
#other segment to force the linker to keep it even if it is not
#used.
# SYMBOLS DEFINITION
+def __endzp=@.ubsct # end of uninitialized zpage
+def __memory=@.bss # end of bss segment
#/***************** END OF FILE *** (c) 2004 STMicroelectronics *************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -