📄 c_stpvr2_stapp_hw.cfg
字号:
## include file to initialize SDRAM from bootstrap if you want
include st551Xsd.cfg
EVAL5512 ="EVAL5512"
EVAL5514 ="EVAL5514"
EVAL5516 ="EVAL5516"
EVAL5517 ="EVAL5517"
EVAL5518 ="EVAL5518"
EVAL5588 ="EVAL5588"
MEDIAREF ="MEDIAREF"
CUSTBOARD1="CUSTBOARD1"
CUSTBOARD2="CUSTBOARD2"
CUSTBOARD3="CUSTBOARD3"
CUSTBOARD4="CUSTBOARD4"
CUSTBOARD5="CUSTBOARD5"
CUSTBOARD6="CUSTBOARD6"
CUSTBOARD7="CUSTBOARD7"
## this variable must be set to 1 if you want to accept some critical code
## in internal SRAM, section named "FASTCODE"&"FAST DATA" ( maximum 1K )
USE_FAST_CODE=1
USE_FAST_DATA=1
USE_UNIFIED_MEMORY=0
USE_ILC1=1
K = 1024
M = K * K
##############################################################################
####### HARDWARE DEFINITION #################################################
##############################################################################
## This procedure is a description of the installed hardware on the
## Eval 5512 board. This procedure is used by the linker to map the
## routines, and is used by st20run also that is aware of the
## available ressources for the hardware.
proc eval5512hw {
processor c2
## internal memory segmentation
memory INT_REG 0x80000000 ( 0x140 ) RAM
## external SDRAM bank
if ( USE_UNIFIED_MEMORY==0) {
memory DRAM_NOCACHE 0x50000000 ( 128 * K ) RAM
memory DRAM_CAC 0x50020000 ( 16255* K ) RAM
}
if ( USE_FAST_DATA==1) {
memory INTERNAL 0x80000140 ( 0xEC0 ) RAM
if ( USE_UNIFIED_MEMORY==0) {
memory TRAPHANDLER 0x50FFFC00 ( 0x400 ) DEBUG
} else {
memory TRAPHANDLER 0xC07FFC00 ( 0x400 ) DEBUG
}
} else {
memory INTERNAL 0x80000140 ( 0xAC0 ) RAM
memory TRAPHANDLER 0x80000C00 ( 0x400 ) DEBUG
}
## external flash bank
memory FLASH 0x7FF00000 ( 1 * M ) ROM
## space for registers
memory BACKENDREGI 0x00000000 ( 8 * K ) RAM
memory EMIREGISTERS 0x00002000 ( 4 * K ) DEVICE
memory CACREGISTERS 0x00004000 ( 4 * K ) DEVICE
## external MPEG SDRAM
memory MSDRAM_NOCACHE 0xC0000000 ( 128 * K ) RAM
memory MSDRAM_MPEG 0xC0020000 ( 3968 * K ) RAM
memory MSDRAM_CACHE 0xC0400000 ( 4191 * K ) RAM
}
## This procedure is a description of the installed hardware on the
## EVAL 5514 board. This procedure is used by the linker to map the
## routines, and is used by st20run also that is aware of the
## available ressources for the hardware.
proc eval5514hw {
## processor c2
chip STi5514
## external SDRAM bank
if ( USE_UNIFIED_MEMORY==0) {
memory DRAM_NOCACHE 0x40000000 ( 128 * K ) RAM
memory DRAM_CAC 0x40020000 ( 10108 * K ) RAM
}
memory SDRAM_B2 0x50000000 ( 16384 * K ) RAM
PlaceDebugTrapHandler INTERNAL
## external flash bank
memory FLASH 0x7FF00000 ( 1 * M ) ROM
## space for registers
memory BACKENDREGI 0x00000000 ( 8 * K ) RAM
## external MPEG SDRAM
memory MSDRAM_NOCACHE 0xC0000000 ( 128 * K ) RAM
memory MSDRAM_MPEG 0xC0020000 ( 3968 * K ) RAM
memory MSDRAM_CACHE 0xC0400000 ( 4096 * K ) RAM
}
## This procedure is a description of the installed hardware on the
## EVAL 5516 board. This procedure is used by the linker to map the
## routines, and is used by st20run also that is aware of the
## available ressources for the hardware.
## 32 Megabytes on bank 0 + 16 Megabytes on SMI
proc eval5516hw {
## processor c2
chip STi5516
## external SDRAM bank
if ( USE_UNIFIED_MEMORY==0) {
memory DRAM_NOCACHE 0x40000000 ( 128 * K ) RAM
memory DRAM_CAC 0x40020000 (16380*K-128* K ) RAM
}
PlaceDebugTrapHandler INTERNAL
## external flash bank
memory FLASH 0x7FE00000 ( 2 * M ) ROM
## space for registers
memory BACKENDREGI 0x00000000 ( 8 * K ) RAM
## external MPEG SDRAM
memory MSDRAM_NOCACHE 0xC0000000 ( 128 * K ) RAM
memory MSDRAM_MPEG 0xC0020000 ( 8064 * K ) RAM
memory MSDRAM_CACHE 0xC0800000 ( 8191 * K ) RAM
}
## This procedure is a description of the installed hardware on the
## EVAL 5516-17 board. This procedure is used by the linker to map the
## routines, and is used by st20run also that is aware of the
## available ressources for the hardware.
## 32 Megabytes on bank 0 + 16 Megabytes on SMI
proc eval5517hw {
## processor c2
chip STi5516 ## could be 5517 but the same
## external SDRAM bank
if ( USE_UNIFIED_MEMORY==0) {
memory DRAM_NOCACHE 0x40000000 ( 128 * K ) RAM
## memory DRAM_CAC (0x40020000) ((16380*K)-128*K) RAM
memory DRAM_CAC 0x40020000 ( (8000 +8000) * K ) RAM
}
PlaceDebugTrapHandler INTERNAL
## external flash bank
memory FLASH 0x7FE00000 ( 2 * M ) ROM
## space for registers
memory BACKENDREGI 0x00000000 ( 8 * K ) RAM
## external MPEG SDRAM
memory MSDRAM_NOCACHE 0xC0000000 ( 128 * K ) RAM
memory MSDRAM_MPEG 0xC0020000 ( 8064 * K ) RAM
memory MSDRAM_CACHE 0xC0800000 ( 8191 * K ) RAM
}
## This procedure is a description of the installed hardware on the
## EVAL 5518 board. This procedure is used by the linker to map the
## routines, and is used by st20run also that is aware of the
## available ressources for the hardware.
proc eval5518hw {
processor c2
## internal memory segmentation
memory INT_REG 0x80000000 ( 0x140 ) RAM
## external SDRAM bank
if ( USE_UNIFIED_MEMORY==0) {
memory DRAM_NOCACHE 0x40000000 ( 128 * K ) RAM
memory DRAM_CAC 0x40020000 ( 16255* K ) RAM
}
if ( USE_FAST_DATA==1) {
memory INTERNAL 0x80000140 ( 0xEC0 ) RAM
if ( USE_UNIFIED_MEMORY==0) {
memory TRAPHANDLER 0x40FFFC00 ( 0x400 ) DEBUG
} else {
memory TRAPHANDLER 0xC07FFC00 ( 0x400 ) DEBUG
}
} else {
memory INTERNAL 0x80000140 ( 0xAC0 ) RAM
memory TRAPHANDLER 0x80000C00 ( 0x400 ) DEBUG
}
## external flash bank
memory FLASH 0x7FC00000 ( 4 * M ) ROM
## space for registers
memory BACKENDREGI 0x00000000 ( 8 * K ) RAM
memory EMIREGISTERS 0x00002000 ( 4 * K ) DEVICE
memory CACREGISTERS 0x00004000 ( 4 * K ) DEVICE
## external MPEG SDRAM
memory MSDRAM_NOCACHE 0xC0000000 ( 128 * K ) RAM
memory MSDRAM_MPEG 0xC0020000 ( 3968 * K ) RAM
memory MSDRAM_CACHE 0xC0400000 ( 4191 * K ) RAM
}
## This procedure is a description of the installed hardware on the
## Mediaref board. This procedure is used by the linker to map the
## routines, and is used by st20run also that is aware of the
## available ressources for the hardware.
## Only 8 Megabytes of SMI
proc mediarefhw {
chip STi5514
## external SDRAM bank
if ( USE_UNIFIED_MEMORY==0) {
memory DRAM_NOCACHE 0x70000000 ( 128 * K ) RAM
memory DRAM_CAC 0x70020000 ( 16255* K ) RAM
}
PlaceDebugTrapHandler INTERNAL
## external flash bank
memory FLASH 0x7FF00000 ( 1 * M ) ROM
## space for registers
memory BACKENDREGI 0x00000000 ( 8 * K ) RAM
## external MPEG SDRAM
memory MSDRAM_NOCACHE 0xC0000000 ( 128 * K ) RAM
memory MSDRAM_MPEG 0xC0020000 ( 3968 * K ) RAM
memory MSDRAM_CACHE 0xC0400000 ( 4091 * K ) RAM
}
## This procedure is left here to show the definition of a new hardware
##
proc evalcust1hw {
chip STi5514
clerror file hw.cfg, place the hardware description here.
if ( USE_UNIFIED_MEMORY==0) {
memory DRAM_NOCACHE 0x40000000 ( 128 * K ) RAM
memory DRAM_CAC 0x40020000 ( 16255* K ) RAM
}
PlaceDebugTrapHandler INTERNAL
## external flash bank
memory FLASH 0x7FF00000 ( 1 * M ) ROM
## external MPEG SDRAM
memory MSDRAM_NOCACHE 0xC0000000 ( 128 * K ) RAM
memory MSDRAM_MPEG 0xC0020000 ( 3968 * K ) RAM
memory MSDRAM_CACHE 0xC0400000 ( 4091 * K ) RAM
}
## initialise the reserved registers in SRAM for hardware resources
proc sti551XMemoryInit {
for (i = 0x80000000 ; i < 0x80000040 ; i = i + 4) {
poke (i) 0x80000000
}
}
##############################################################################
####### EMI INITIALISATION ##################################################
##############################################################################
##############################################################################
############ 5512 ############################################################
##############################################################################
## initialize the eval 5512 EMI : 16 Megabytes SDRAM (bank1) + 4Megabytes Flash M29W800
proc eval5512EMIInit {
write Initializing the EMI for eval 5512 board
poke 0x2070 0x0C00 ## padlogic
sti551XMemoryInit
poke 0x2000 0x132a
poke 0x2004 0xfff8
poke 0x2008 0x012a
poke 0x200C 0x095a
poke 0x2010 0x132a
poke 0x2014 0xfff8
poke 0x2018 0x012a
poke 0x201C 0x095a
poke 0x2058 0x0022
poke 0x205C 0x0022
poke 0x2060 0x0001
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -