; bdiGDB configuration file for MPC8272ADS board ; ---------------------------------------------- ; [INIT] ; init core register WREG MSR 0x00001002 ;MSR : ME,RI ;WM32 0x000101A8 0x7e000000 ;IMMR : internal space @ 0x7e000000 (RSTCONF high) WM32 0x0F0101A8 0x7e000000 ;IMMR : internal space @ 0x7e000000 (HRCW from flash) WM32 0x7e010004 0xFFFFFFC3 ;SYPCR: disable watchdog WM32 0x7e010024 0x100C0000 ;BCR : Single PQ2, .. WM32 0x7e010c94 0x00000001 ;RMR : checkstop reset enable ; ; init memory controller WM32 0x7e010104 0xFF800876 ;OR0: Flash 8MB, CS early negate, 11 w.s., Timing relax WM32 0x7e010100 0xFF801801 ;BR0: Flash @0xFF800000, 32bit, no parity WM32 0x7e01010C 0xFFFF8010 ;OR1: BCSR 32KB, all types access, 1 w.s. WM32 0x7e010108 0x04501801 ;BR1: BCSR @0x04500000, 32bit, no parity WM32 0x7e010124 0xFFFF8866 ;OR4: EEPROM 32KB, all types access, 6 w.s. WM32 0x7e010120 0xC2000801 ;BR4: EEPROM @0xC2000000, 8bit, no parity ; ; init SDRAM Init (PPC bus) WM16 0x7e010184 0x2800 ;MPTPR: Divide Bus clock by 41 WM8 0x7e01019C 0x13 ;PSRT : Divide MPTPR output by 20 WM32 0x7e010114 0xfe002ec0 ;OR2 : 32MB, 2 banks, row start at A9, 11 rows WM32 0x7e010110 0x00000041 ;BR2 : SDRAM @0x00000000, 64bit, no parity WM32 0x7e010190 0x824b36a3 ;PSDMR: Precharge all banks WM32 0x7e010190 0xaa4b36a3 WM8 0x00000000 0x00 ;Access SDRAM WM32 0x7e010190 0x8a4b36a3 ;PSDMR: CBR Refresh WM8 0x00000000 0xFF ;Access SDRAM WM8 0x00000000 0xFF ;Access SDRAM WM8 0x00000000 0xFF ;Access SDRAM WM8 0x00000000 0xFF ;Access SDRAM WM8 0x00000000 0xFF ;Access SDRAM WM8 0x00000000 0xFF ;Access SDRAM WM8 0x00000000 0xFF ;Access SDRAM WM8 0x00000000 0xFF ;Access SDRAM WM32 0x7e010190 0x9a4b36a3 ;PSDMR: Mode Set WM8 0x00000190 0x00 ;Access SDRAM WM32 0x7e010190 0xc24b36a3 ;PSDMR: enable refresh, normal operation ; WREG PC 0x00004000 ;set program counter [TARGET] CPUTYPE 8272 ;the CPU type JTAGCLOCK 1 ;use 16 MHz JTAG clock POWERUP 7000 ;start delay after power-up detected in ms BOOTADDR 0xfff00100 ;boot address used for start-up break WORKSPACE 0x7e000000 ;workspace in target RAM for fast download ;MEMDELAY 2000 ;additional memory access delay [HOST] IP 151.120.25.119 FILE E:\cygwin\home\demo\mpc860\fibo.elf FORMAT ELF PROMPT 8272> ;new prompt for Telnet [FLASH] CHIPTYPE I28BX8 ; Flash type CHIPSIZE 0x200000 ; Single chip size (2 Mbyte) BUSWIDTH 32 ; total width for the whole SIMM WORKSPACE 0x7e000000 ;workspace in target RAM for fast download FILE E:\temp\dump256k.bin FORMAT BIN 0xFF900000 ERASE 0xFF900000 ;erase sector 4 of flash SIMM ERASE 0xFF940000 ;erase sector 5 of flash SIMM ERASE 0xFF980000 ;erase sector 6 of flash SIMM ERASE 0xFF9C0000 ;erase sector 7 of flash SIMM [REGS] DMM1 0x7e000000 FILE E:\cygwin\home\bdidemo\mpc8260\reg8272.def