;ep405 VxWorks ;--------------- ;written by Greg Davis ;Based on bdiWind configuration file for IBM 405GP Reference Board ; ; [INIT] ; init core register WSPR 954 0x00000000 ;DCWR: Disable data cache write-thru WSPR 1018 0x00000000 ;DCCR: Disable data cache WSPR 1019 0x00000000 ;ICCR: Disable instruction cache WSPR 982 0x00000000 ;EVPR: Exception Vector Table @0x00000000 ; Setup Peripheral Bus WDCR 18 0x00000010 ;Select PB0AP WDCR 19 0x02000000 ;PB0AP: Flash WDCR 18 0x00000000 ;Select PB0CR WDCR 19 0xFC0DC000 ;PB0CR WDCR 18 0x00000014 ;Select PB4AP WDCR 19 0x04050000 ;PB4AP: NVRAM and BCSR WDCR 18 0x00000004 ;Select PB4CR WDCR 19 0xf4058000 ;PB4CR ; Setup SDRAM Controller WDCR 16 0x00000080 ;Select SDTR1 WDCR 17 0x010E8016 ;SDTR1: SDRAM Timing Register WDCR 16 0x00000040 ;Select MB0CF WDCR 17 0x00084001 ;MB0CF: 16MB @ 0x00000000 WDCR 16 0x00000030 ;Select RTR WDCR 17 0x04000000 ;RTR: Refresh Timing Register WDCR 16 0x00000020 ;Select MCOPT1 WDCR 17 0x80C00000 ;MCOPT1: Enable SDRAM Controller [TARGET] JTAGCLOCK 0 ;use 16 MHz JTAG clock CPUTYPE 405 ;the used target CPU type BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT | GATEWAY) ;BDIMODE GATEWAY ;the BDI working mode (LOADONLY | AGENT | GATEWAY) ;BAUDRATE 38400 ; baudrate for gateway mode INITTIME 5 ; time in seconds VxWorks needs for initialisation BREAKMODE HARD ; SOFT or HARD, HARD uses PPC hardware breakpoint ;VECTOR CATCH ; catch unhandled exceptions MEMBASE 0 ; base of target memory MEMSIZE 0x1000000 ; size of target memory POOLBASE 0x0FC0000 ; base of host controlled target memory POOLSIZE 0x0040000 ; size of host controlled target memory [HOST] IP 10.0.0.172 FILE C:\VxWorks_Projects\ep405_test\default\vxworks ;FILE E:\tornado\target\proj\evb405_gtw\default\vxworks FORMAT ELF LOAD MANUAL ; load VxWorks code MANUAL or AUTO after reset [REGS] IDCR1 0x010 0x011 ;MEMCFGADR and MEMCFGDATA IDCR2 0x012 0x013 ;EBCCFGADR and EBCCFGDATA IDCR3 0x014 0x015 ;KIAR and KIDR FILE defs/reg405gp.def