; Configuration file for the M5282EVB ; ----------------------------------- ; ; 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 0x2000 ;SYNCR : Speed-up PLL to 64MHz DELAY 10 ;delay after changing the PLL ; ; Init Flash Module WCREG 0xC04 0xF0000121 ;FLASHBAR: Internal Flash at 0xf0000000 ;WM8 0x401D0002 0x4A ;CFMCLKD : Flash clock divider for 32MHz WM8 0x401D0002 0x54 ;CFMCLKD : Flash clock divider for 64MHz WM32 0x401D0010 0x00000000 ;CFMPROT : disable flash protection ; ; Init Parallel Port WM8 0x40100050 0xC0 ;PBCDPAR: Port B,C,D for D[23:0] ; ; Init Chip-Select Module WM16 0x40000080 0xFFE0 ;CSAR0: Flash at 0xFFE00000 WM16 0x4000008A 0x1580 ;CSCR0: Flash 5 waits, 16bit, WM32 0x40000084 0x001F0001 ;CSMR0: Flash 2MB, R/W, valid ; ; Init SDRAM Controller (same as dBug) WM16 0x40000040 0x023c ;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 20 ;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 ; ; === Define the valid memory map === MMAP 0x00000000 0x00FFFFFF ;Memory range for 16MB SDRAM MMAP 0x10000000 0x100004FF ;Memory map for Internal Register MMAP 0x20000000 0x20007FFF ;Memory map for On-chip SRAM MMAP 0xFFE00000 0xFFFFFFFF ;Memory range for Flash ROM at CS0 [TARGET] CPUTYPE MCF5282 CPUCLOCK 64000000 ;the CPU clock rate after processing the init list 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 [FLASH] WORKSPACE 0x20000000 ;workspace in target RAM for fast programming algorithm CHIPTYPE CFM ;MCF5282 internal flash BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16 | 32) ;FILE E:\cygwin\home\bdidemo\coldfire\evb5282_cmf.bin ;FORMAT BIN 0x44000000 ;ERASE 0x44000000 MASS ;ERASE 0x44040000 MASS FILE E:\cygwin\home\bdidemo\coldfire\system.map FORMAT BIN 0x44040000 ERASE 0x44040000 MASS [REGS] DMM1 0x40000000 FILE $reg5282.def