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

📄 sti550xaddr.cfg

📁 flash programming STI 5.5.1.4 DCU3
💻 CFG
字号:
if (!(clsymbol ST550XADDR)) {
ST550XADDR=1

## addresses of onchip 550X devices

Devices.index=0

Devices.EMIindex=Devices.index++
Devices[Devices.EMIindex].symname = "EMIAddr"
Devices[Devices.EMIindex].addr = 0x2000

Devices.DCU2index=Devices.index++
Devices[Devices.DCU2index].symname = "DCU2Addr"
Devices[Devices.DCU2index].addr = 0x3000

Devices.CACHEindex=Devices.index++
Devices[Devices.CACHEindex].symname = "CacheControlAddr"
Devices[Devices.CACHEindex].addr = 0x4000

Devices.INTCTRLindex=Devices.index++
Devices[Devices.INTCTRLindex].symname = "InterruptControllerAddr"
Devices[Devices.INTCTRLindex].addr = 0x20000000

Devices.INTCTRLLEVELSindex=Devices.index++
Devices[Devices.INTCTRLLEVELSindex].symname = "InterruptControllerLevels"
Devices[Devices.INTCTRLLEVELSindex].addr = 8

Devices.ASCindex=Devices.index
Devices.NUMASC=4
for (i=0;i<Devices.NUMASC;i++) {
  Devices[Devices.ASCindex+i].symname = "ASC"+(mkstr(i))+"Addr"
  Devices[Devices.ASCindex+i].addr = 0x20003000 + (i * 0x1000)
}
Devices.index += Devices.NUMASC

Devices.SCIindex=Devices.index
Devices.NUMSCI=2
for (i=0;i<Devices.NUMSCI;i++) {
  Devices[Devices.SCIindex+i].symname = "SCI"+(mkstr(i))+"Addr"
  Devices[Devices.SCIindex+i].addr = 0x20007000 + (i * 0x1000)
}
Devices.index += Devices.NUMSCI

Devices.SCCindex=Devices.index++
Devices[Devices.SCCindex].symname = "SCCAddr"
Devices[Devices.SCCindex].addr = 0x20009000

Devices.PWMCTRLindex=Devices.index++
Devices[Devices.PWMCTRLindex].symname = "PWMControllerAddr"
Devices[Devices.PWMCTRLindex].addr = 0x2000B000

Devices.PIOindex=Devices.index
Devices.NUMPIO=5
for (i=0;i<Devices.NUMPIO;i++) {
  Devices[Devices.PIOindex+i].symname = "PIOController"+(mkstr(i))+"Addr"
  Devices[Devices.PIOindex+i].addr = 0x2000c000 + (i * 0x1000)
}
Devices.index += Devices.NUMPIO

Devices.INTLEVELCTRLindex=Devices.index++
Devices[Devices.INTLEVELCTRLindex].symname = "InterruptLevelControllerAddr"
Devices[Devices.INTLEVELCTRLindex].addr = 0x20011000

Devices.INTLEVELCTRLNUMINPUTSindex=Devices.index++
Devices[Devices.INTLEVELCTRLNUMINPUTSindex].symname = "InterruptLevelControllerNumInputs"
Devices[Devices.INTLEVELCTRLNUMINPUTSindex].addr = 21

Devices.INTLEVELCTRLINPUTOFFSETindex=Devices.index++
Devices[Devices.INTLEVELCTRLINPUTOFFSETindex].symname = "InterruptLevelControllerInputOffset"
Devices[Devices.INTLEVELCTRLINPUTOFFSETindex].addr = 31


Devices.MPEGDMACTRLindex=Devices.index;
Devices.NUMMPEGDMA=3
for (i=0;i<Devices.NUMMPEGDMA;i++) {
  Devices[Devices.MPEGDMACTRLindex+i].symname = "MPEGDMAController"+(mkstr(i))+"Addr"
  Devices[Devices.MPEGDMACTRLindex+i].addr = 0x20020000 + (i * 0x1000)
}
Devices.index +=Devices.NUMMPEGDMA


Devices.TTindex=Devices.index++
Devices[Devices.TTindex].symname = "TeletextInterfaceAddr"
Devices[Devices.TTindex].addr = 0x20024000

Devices.ChanBlockMoveindex=Devices.index++
Devices[Devices.ChanBlockMoveindex].symname = "ChanBlockMoveDMAControllerAddr"
Devices[Devices.ChanBlockMoveindex].addr = 0x20026000
}

proc sti550xmemory {
  memory INTERNAL 0x80000000 (4*K) RAM
  memory SYSTEM 0x80000000 (0x140) RESERVED
  memory MPEGPERIPHERALS 0x1000 0x1000 PERIPHERAL   ## cannot be accessed via DCU
  memory ONCHIPDEVICES 0x2000 0x3000 DEVICE ## can be word accessed via DCU
  memory ONCHIPPERIPHERALS 0x20000000 0x27000 PERIPHERAL   ## cannot be accessed via DCU
}

⌨️ 快捷键说明

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