📄 bldc_cosmic.lkf
字号:
#/*********************** (c) 2004 STMicroelectronics ***********************
#
# Project: Brushless BLDC Sensorless motor drive Software Library
#
# VERSION: 1.0
#
# AUTHOR: Florent COSTE
# Microcontroller Division Applications
#
# DESCRIPTION: Link Command File for COSMIC ST7 C-Compiler
#
#*****************************************************************************/
# SEGMENT DEFINITION (.text, .const, .data, .bss, .bsct, .ubsct, .eeprom are c compiler predefined sections)
+seg .text -b0xE000 -m0x1f00 -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
+seg .bss -b0x0100 -m0x080 -nUDATA -sRAM # uninitialized variables
+seg .data -aUDATA -nIDATA -sRAM # initialized variables
#/*****************************************************************************
#
# LIST OF OBJECT FILES
#
# ****************************************************************************/
# OBJECT FILES
..\..\object\cosmic\main.o
..\..\object\cosmic\LinSCI.o
..\..\object\cosmic\regul.o
..\..\object\cosmic\Timer.o
..\..\object\cosmic\It_ST7MC.o
..\..\object\cosmic\mtc.o
..\..\object\cosmic\mtc_hr.o
..\..\object\cosmic\opamp.o
..\..\object\cosmic\ports.o
..\..\object\cosmic\ST7MC_hr.o
..\..\object\cosmic\adc.o
..\..\object\cosmic\Misc.o
..\..\object\cosmic\wwdg.o
..\..\object\cosmic\spi.o
# STARTUP FILE
C:\COSMIC\CXST7\LIB\crtsx.st7 # startup routine with RAM initialization
#C:\COSMIC\CXST7_4K\LIB\crtsx.st7 # startup routine with RAM initialization
# INTEGER LIBRARY FOR SMALL MEMORY MODEL
C:\COSMIC\CXST7\LIB\libims.st7
#C:\COSMIC\CXST7_4K\LIB\libims.st7
# MACHINE LIBRARY FOR ALL MEMORY MODELS
C:\COSMIC\CXST7\LIB\libm.st7
#C:\COSMIC\CXST7_4K\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 + -