106 lines
4.3 KiB
Plaintext
106 lines
4.3 KiB
Plaintext
; initialize system
|
|
;SYStem.RESet
|
|
|
|
|
|
; disable the id check because the cpu does not send the debugger the pattern the debugger expects
|
|
sys.option noircheck on
|
|
|
|
; other 946 cpu bug fix seen also on 926
|
|
sys.option MULTIPLESFIX on
|
|
|
|
|
|
|
|
SYStem.CPU 88FR331
|
|
SYStem.Option BigEndian OFF
|
|
|
|
;start debugger. This will also reset the board.
|
|
SYStem.JtagClock 1MHz
|
|
SYStem.mode attach
|
|
SYStem.Up
|
|
|
|
SYStem.JtagClock 10MHz
|
|
Data.Set C15:1 %LONG 0x00052078
|
|
|
|
; dram init
|
|
|
|
d.s 0xD0001400 %LONG 0x43000c30 ; DDR SDRAM Configuration Register
|
|
d.s 0xD0001404 %LONG 0x39543000 ; Dunit Control Low Register
|
|
d.s 0xD0001408 %LONG 0x22125451 ; DDR SDRAM Timing (Low) Register
|
|
d.s 0xD000140C %LONG 0x00000833 ; DDR SDRAM Timing (High) Register
|
|
d.s 0xD0001410 %LONG 0x000000cc ; DDR SDRAM Address Control Register
|
|
d.s 0xD0001414 %LONG 0x00000000 ; DDR SDRAM Open Pages Control Register
|
|
d.s 0xD0001418 %LONG 0x00000000 ; DDR SDRAM Operation Register
|
|
d.s 0xD000141C %LONG 0x00000c52 ; DDR SDRAM Mode Register
|
|
d.s 0xD0001420 %LONG 0x00000042 ; DDR SDRAM Extended Mode Register
|
|
d.s 0xD0001424 %LONG 0x0000F1FF ; Dunit Control High Register
|
|
d.s 0xD0001428 %LONG 0x00085520 ; Dunit Control High Register
|
|
d.s 0xD000147c %LONG 0x00008552 ; Dunit Control High Register
|
|
d.s 0xD0001504 %LONG 0x0fFFFFF1 ; CS[0]n Size Register
|
|
d.s 0xD0001508 %LONG 0x10000000 ; CS[1]n Base Register
|
|
d.s 0xD000150C %LONG 0x0fFFFFF5 ; CS[1]n Size Register
|
|
d.s 0xD0001514 %LONG 0x00000000 ; CS[2]n Size Register
|
|
d.s 0xD000151C %LONG 0x00000000 ; CS[3]n Size Register
|
|
d.s 0xD0001494 %LONG 0x003c0000 ; DDR2 SDRAM ODT Control (Low) Register
|
|
d.s 0xD0001498 %LONG 0x00000000 ; DDR2 SDRAM ODT Control (High) Register
|
|
d.s 0xD000149C %LONG 0x0000F80F ; DDR2 Dunit ODT Control Register
|
|
d.s 0xD0001480 %LONG 0x00000001 ; DDR SDRAM Initialization Control Register
|
|
d.s 0xD0020204 %LONG 0x00000000 ; Main IRQ Interrupt Mask Register
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
d.s 0xD0020204 %LONG 0x00000000 ; "
|
|
|
|
; set program counter at program start
|
|
Register.Set pc 0xFFFF0000
|
|
|
|
; open some windows
|
|
winpos 0% 0% 100% 50%
|
|
Data.List
|
|
winpos 0% 50% 50% 50%
|
|
SYStem
|
|
|
|
enddo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|