; Configuration file for the M5271EVB ; ----------------------------------- ; ; the initialistion list used to setup the target system [INIT] ; ; Init SCM/Clock Module WCREG 0xC05 0x20000001 ;RAMBAR: Internal SRAM at 0x20000000 WM16 0x40140000 0x000E ;WCR : Disable watchdog timer WM16 0x40120000 0x0000 ;SYNCR : Speed-up PLL to 100MHz DELAY 10 ;delay after changing the PLL ; ; Init Parallel Port WM8 0x40100040 0xE1 ;PAR_AD: D[15:0] pins configured for data 15-0 functions ; ; Init Chip-Select Module WM16 0x40000080 0xFFE0 ;CSAR0: Flash at 0xFFE00000 WM16 0x4000008A 0x1980 ;CSCR0: Flash 6 waits, 16bit, WM32 0x40000084 0x001F0001 ;CSMR0: Flash 2MB, R/W, valid ; ; Init SDRAM Controller (same as dBug) WM16 0x40000040 0x042e ;DCR: WM32 0x40000048 0x00001300 ;DACR0: base=0x00000000 WM32 0x4000004C 0x00FC0001 ;DMR0: mask=16MB; enable WM32 0x40000048 0x00001308 ;DACR0: Initiate Precharge All Command WM32 0x00000000 0xa5a59696 ;Execute PALL command WM32 0x40000048 0x00009300 ;DACR0: enable refresh DELAY 100 ;Delay for Refresh WM32 0x40000048 0x00009340 ;DACR0: Initiate Mode Register Set Command WM32 0x00000400 0xa5a59696 ;Execute MRS command ; ; WAREG 7 0x000ffff0 ;set initial SP WAREG 6 0x000ffff0 ;set initial FP ; [TARGET] CPUTYPE MCF5271 ;CPUCLOCK 37500000 ;default CPU clock is 37.5 MHz CPUCLOCK 100000000 ;CPU clock after programming the PLL is 100MHz BREAKMODE SOFT ;SOFT or HARD VECTOR CATCH ;catch unhandled exceptions [HOST] IP 151.120.25.119 FILE E:\cygwin\home\demo\mcf\fibo.x FORMAT ELF LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT 5271> [FLASH] WORKSPACE 0x20000000 ;workspace in target RAM for fast programming algorithm CHIPTYPE AM29BX16 ;Flash type is AM29PL160CB CHIPSIZE 0x200000 ;The size of one flash chip in bytes BUSWIDTH 16 ;The width of the flash memory bus in bits (8 | 16 | 32) FILE E:\cygwin\home\bdidemo\ColdFire\m5271evb.bin FORMAT BIN 0xFFF00000 ;ERASE 0xFFE00000 ;erase sector 0 of flash ;ERASE 0xFFE04000 ;erase sector 1 of flash ;ERASE 0xFFE06000 ;erase sector 2 of flash ;ERASE 0xFFE08000 ;erase sector 3 of flash ;ERASE 0xFFE40000 ;erase sector 4 of flash ERASE 0xFFE80000 ;erase sector 5 of flash ERASE 0xFFEC0000 ;erase sector 6 of flash ERASE 0xFFF00000 ;erase sector 7 of flash ERASE 0xFFF40000 ;erase sector 8 of flash ERASE 0xFFF80000 ;erase sector 9 of flash ERASE 0xFFFC0000 ;erase sector 10 of flash [REGS] DMM1 0x40000000 FILE $reg5271.def