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

📄 project.lkf

📁 st公司新出的一款8位单片机st79的lib库
💻 LKF
字号:
#
# File: project.lkf
# Description: Link command file for ST79 128K Flash product
# Author: STMicroelectronics - MCD & APG Car Body Application Labs
# Version: V0.01
# Date: 04-JUL-2007
#

+grp .bsct1=.GPIO_IZRAM
+grp .bsct2=.EXTI_IZRAM
+grp .bsct3=.ITC_IZRAM
+grp .bsct4=.CLK_IZRAM
+grp .bsct5=.IWDG_IZRAM
+grp .bsct6=.WWDG_IZRAM
+grp .bsct7=.USART_IZRAM
+grp .bsct8=.LINUART_IZRAM
+grp .bsct9=.FLASH_IZRAM
+grp .bsct10=.AWUBEEP_IZRAM
+grp .bsct11=.SPI_IZRAM
+grp .bsct12=.ADC_IZRAM
+grp .bsct13=.TIMER_IZRAM
+grp .bsct14=.I2C_IZRAM

+grp .ubsct1=.GPIO_UZRAM
+grp .ubsct2=.EXTI_UZRAM
+grp .ubsct3=.ITC_UZRAM
+grp .ubsct4=.CLK_UZRAM
+grp .ubsct5=.IWDG_UZRAM
+grp .ubsct6=.WWDG_UZRAM
+grp .ubsct7=.USART_UZRAM
+grp .ubsct8=.LINUART_UZRAM
+grp .ubsct9=.FLASH_UZRAM
+grp .ubsct10=.AWUBEEP_UZRAM
+grp .ubsct11=.SPI_UZRAM
+grp .ubsct12=.ADC_UZRAM
+grp .ubsct13=.TIMER_UZRAM
+grp .ubsct14=.I2C_UZRAM

+grp .data1=.GPIO_ILRAM
+grp .data2=.EXTI_ILRAM
+grp .data3=.ITC_ILRAM
+grp .data4=.CLK_ILRAM
+grp .data5=.IWDG_ILRAM
+grp .data6=.WWDG_ILRAM
+grp .data7=.USART_ILRAM
+grp .data8=.LINUART_ILRAM
+grp .data9=.FLASH_ILRAM
+grp .data10=.AWUBEEP_ILRAM
+grp .data11=.SPI_ILRAM
+grp .data12=.ADC_ILRAM
+grp .data13=.TIMER_ILRAM
+grp .data14=.I2C_ILRAM

+grp .bss1=.GPIO_ULRAM
+grp .bss2=.EXTI_ULRAM
+grp .bss3=.ITC_ULRAM
+grp .bss4=.CLK_ULRAM
+grp .bss5=.IWDG_ULRAM
+grp .bss6=.WWDG_ULRAM
+grp .bss7=.USART_ULRAM
+grp .bss8=.LINUART_ULRAM
+grp .bss9=.FLASH_ULRAM
+grp .bss10=.AWUBEEP_ULRAM
+grp .bss11=.SPI_ULRAM
+grp .bss12=.ADC_ULRAM
+grp .bss13=.TIMER_ULRAM
+grp .bss14=.I2C_ULRAM

+grp .text1=.GPIO_CODE
+grp .text2=.EXTI_CODE
+grp .text3=.ITC_CODE
+grp .text4=.CLK_CODE
+grp .text5=.IWDG_CODE
+grp .text6=.WWDG_CODE
+grp .text7=.USART_CODE
+grp .text8=.LINUART_CODE
+grp .text9=.FLASH_CODE
+grp .text10=.AWUBEEP_CODE
+grp .text11=.SPI_CODE
+grp .text12=.ADC_CODE
+grp .text13=.TIMER_CODE
+grp .text14=.I2C_CODE

+grp .const1=.GPIO_CONST
+grp .const2=.EXTI_CONST
+grp .const3=.ITC_CONST
+grp .const4=.CLK_CONST
+grp .const5=.IWDG_CONST
+grp .const6=.WWDG_CONST
+grp .const7=.USART_CONST
+grp .const8=.LINUART_CONST
+grp .const9=.FLASH_CONST
+grp .const10=.AWUBEEP_CONST
+grp .const11=.SPI_CONST
+grp .const12=.ADC_CONST
+grp .const13=.TIMER_CONST
+grp .const14=.I2C_CONST

#
# Initialized variables in zero page (@tiny by default)
#
+seg .bsct -b 0x0000 -m 128 -n IZRAM_DEF
+seg .bsct1 -a IZRAM_DEF -n IZRAM_GPIO
+seg .bsct2 -a IZRAM_GPIO -n IZRAM_EXTI
+seg .bsct3 -a IZRAM_EXTI -n IZRAM_ITC
+seg .bsct4 -a IZRAM_ITC -n IZRAM_CLK
+seg .bsct5 -a IZRAM_CLK -n IZRAM_IWDG
+seg .bsct6 -a IZRAM_IWDG -n IZRAM_WWDG
+seg .bsct7 -a IZRAM_WWDG -n IZRAM_USART
+seg .bsct8 -a IZRAM_USART -n IZRAM_LINUART
+seg .bsct9 -a IZRAM_LINUART -n IZRAM_FLASH
+seg .bsct10 -a IZRAM_FLASH -n IZRAM_AWUBEEP
+seg .bsct11 -a IZRAM_AWUBEEP -n IZRAM_SPI
+seg .bsct12 -a IZRAM_SPI -n IZRAM_ADC
+seg .bsct13 -a IZRAM_ADC -n IZRAM_TIMER
+seg .bsct14 -a IZRAM_TIMER -n IZRAM_I2C

#
# Uninitialized variables in zero page
#
+seg .ubsct -a IZRAM_I2C -n UZRAM_DEF
+seg .ubsct1 -a UZRAM_DEF -n UZRAM_GPIO
+seg .ubsct2 -a UZRAM_GPIO -n UZRAM_EXTI
+seg .ubsct3 -a UZRAM_EXTI -n UZRAM_ITC
+seg .ubsct4 -a UZRAM_ITC -n UZRAM_CLK
+seg .ubsct5 -a UZRAM_CLK -n UZRAM_IWDG
+seg .ubsct6 -a UZRAM_IWDG -n UZRAM_WWDG
+seg .ubsct7 -a UZRAM_WWDG -n UZRAM_USART
+seg .ubsct8 -a UZRAM_USART -n UZRAM_LINUART
+seg .ubsct9 -a UZRAM_LINUART -n UZRAM_FLASH
+seg .ubsct10 -a UZRAM_FLASH -n UZRAM_AWUBEEP
+seg .ubsct11 -a UZRAM_AWUBEEP -n UZRAM_SPI
+seg .ubsct12 -a UZRAM_SPI -n UZRAM_ADC
+seg .ubsct13 -a UZRAM_ADC -n UZRAM_TIMER
+seg .ubsct14 -a UZRAM_TIMER -n UZRAM_I2C

#
# Initialized variables (@near)
#
+seg .data -b 0x0300 -n ILRAM_DEF
+seg .data1 -a ILRAM_DEF -n ILRAM_GPIO
+seg .data2 -a ILRAM_GPIO -n ILRAM_EXTI
+seg .data3 -a ILRAM_EXTI -n ILRAM_ITC
+seg .data4 -a ILRAM_ITC -n ILRAM_CLK
+seg .data5 -a ILRAM_CLK -n ILRAM_IWDG
+seg .data6 -a ILRAM_IWDG -n ILRAM_WWDG
+seg .data7 -a ILRAM_WWDG -n ILRAM_USART
+seg .data8 -a ILRAM_USART -n ILRAM_LINUART
+seg .data9 -a ILRAM_LINUART -n ILRAM_FLASH
+seg .data10 -a ILRAM_FLASH -n ILRAM_AWUBEEP
+seg .data11 -a ILRAM_AWUBEEP -n ILRAM_SPI
+seg .data12 -a ILRAM_SPI -n ILRAM_ADC
+seg .data13 -a ILRAM_ADC -n ILRAM_TIMER
+seg .data14 -a ILRAM_TIMER -n ILRAM_I2C

#
# Uninitialized variables (@near)
#
+seg .bss  -a ILRAM_I2C -n ULRAM_DEF
+seg .bss1 -a ULRAM_DEF -n ULRAM_GPIO
+seg .bss2 -a ULRAM_GPIO -n ULRAM_EXTI
+seg .bss3 -a ULRAM_EXTI -n ULRAM_ITC
+seg .bss4 -a ULRAM_ITC -n ULRAM_CLK
+seg .bss5 -a ULRAM_CLK -n ULRAM_IWDG
+seg .bss6 -a ULRAM_IWDG -n ULRAM_WWDG
+seg .bss7 -a ULRAM_WWDG -n ULRAM_USART
+seg .bss8 -a ULRAM_USART -n ULRAM_LINUART
+seg .bss9 -a ULRAM_LINUART -n ULRAM_FLASH
+seg .bss10 -a ULRAM_FLASH -n ULRAM_AWUBEEP
+seg .bss11 -a ULRAM_AWUBEEP -n ULRAM_SPI
+seg .bss12 -a ULRAM_SPI -n ULRAM_ADC
+seg .bss13 -a ULRAM_ADC -n ULRAM_TIMER
+seg .bss14 -a ULRAM_TIMER -n ULRAM_I2C

#
# Interrupt vectors table
#
+seg .const -b 0x8000 -m 128 -n VECTOR_TABLE
debug\st79_vectab.o

#
# Code
#
+seg .text -b 0x8080 -n CODE_DEF
+seg .text1 -a CODE_DEF -n CODE_GPIO
+seg .text2 -a CODE_GPIO -n CODE_EXTI
+seg .text3 -a CODE_EXTI -n CODE_ITC
+seg .text4 -a CODE_ITC -n CODE_CLK
+seg .text5 -a CODE_CLK -n CODE_IWDG
+seg .text6 -a CODE_IWDG -n CODE_WWDG
+seg .text7 -a CODE_WWDG -n CODE_USART
+seg .text8 -a CODE_USART -n CODE_LINUART
+seg .text9 -a CODE_LINUART -n CODE_FLASH
+seg .text10 -a CODE_FLASH -n CODE_AWUBEEP
+seg .text11 -a CODE_AWUBEEP -n CODE_SPI
+seg .text12 -a CODE_SPI -n CODE_ADC
+seg .text13 -a CODE_ADC -n CODE_TIMER
+seg .text14 -a CODE_TIMER -n CODE_I2C

#
# Constants
#
+seg .const -a CODE_I2C -n CONST_DEF
+seg .const1 -a CONST_DEF -n CONST_GPIO
+seg .const2 -a CONST_GPIO -n CONST_EXTI
+seg .const3 -a CONST_EXTI -n CONST_ITC
+seg .const4 -a CONST_ITC -n CONST_CLK
+seg .const5 -a CONST_CLK -n CONST_IWDG
+seg .const6 -a CONST_IWDG -n CONST_WWDG
+seg .const7 -a CONST_WWDG -n CONST_USART
+seg .const8 -a CONST_USART -n CONST_LINUART
+seg .const9 -a CONST_LINUART -n CONST_FLASH
+seg .const10 -a CONST_FLASH -n CONST_AWUBEEP
+seg .const11 -a CONST_AWUBEEP -n CONST_SPI
+seg .const12 -a CONST_SPI -n CONST_ADC
+seg .const13 -a CONST_ADC -n CONST_TIMER
+seg .const14 -a CONST_TIMER -n CONST_I2C

#
# Startup file
#
debug\crtsi.o

#
# Put your files here
#
debug\st79_main.o
debug\st79_gpio.o
debug\st79_exti.o
debug\st79_itc.o
debug\st79_clk.o
debug\st79_iwdg.o
debug\st79_wwdg.o
debug\st79_usart.o
debug\st79_linuart.o
debug\st79_it.o

#
# float and integer library names depend on the model used 
#
"C:\Program Files\COSMIC\CXSTP7\Lib\libisl.sp7"
"C:\Program Files\COSMIC\CXSTP7\Lib\libm.sp7"

+def __stack=0x17FF
+def __endzp=@.ubsct # end of uninitialized zpage
+def __memory=@.bss # symbol used by startup

# EOF

⌨️ 快捷键说明

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