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

📄 flashprg.cfg

📁 boot loader示范程序
💻 CFG
字号:
###############################################################################
##
## File Name    : flashprg.cfg
##
##  Description  : Command file to configure the Flsh Burner tool
##                 with DCU toolset using default placement
##
## (C)Copyright ST Microelectronics 1998
##
## Reference to the origin of this file within the clearcase repository :
## \5500ref\flash\burner\flashprg.cfg
##
## Revision History (Latest modification on top) :
## Date           Modification                                       Initials
## ----           ------------                                       --------
## 15-Jan-99      Creation                                              PL
##
###############################################################################

## get the available hardware descriptions

include hw.cfg

proc c2_Flash_lku
{
  ## memory placement
  c2_config_hw(CODE_ON_SDRAM_32M)

  write LKU Link with CODE_ON_SDRAM
  ## specify heap and stack requirements and place them on SDRAM section
  stack SDRAM_PROG (10 * K)
  heap  SDRAM_PROG

  ## place code and and data on SDRAM_PROG section
  place def_data                  SDRAM_PROG
  place def_bss                   SDRAM_PROG
  place def_code                  SDRAM_PROG
  place def_const                 SDRAM_PROG

  place <startup_section>         SDRAM_PROG
  place <shutdown_section>        SDRAM_PROG
  bootdata                        SDRAM_PROG

  ## Place OS20 kernel critical data structures
  place os20_th_code              SDRAM_PROG
  place os20_task_queue           SDRAM_PROG
  place os20_th_data              SDRAM_PROG
  place os20_root_tdesc           SDRAM_PROG
}


## procedure which collects chip, memory system, EMI initialisation and
## internal memory initialisation together for use when executing LKU file
proc c2def
{
  reset -full
  c2_config_hw(CODE_ON_SDRAM_32M)
  ST5500ConfigureEMI
  c2MemoryInit
  ST5500ConfigureSDRAM 
  
  ##EnableIAndDCache
  EnableICache
  poke -d (CODE_EXE_ADDRESS) 0x00554b4c   ## LKU string
}


###############################################################################
##
## Target definitions used by st20run
##
###############################################################################

## if we use the simulator
target c2FlashSim      st20sim "st20sim -q -f hw.cfg -p c2def"

## if the Eval5500 is connected to a JPI box
target c2FlashJpi      tap     "ppi lpt1"                      c2def

## if the Eval5500 is connected to a JEI box
target c2FlashJei      tap     "jei_soc 167.4.251.174"         c2def

⌨️ 快捷键说明

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