; Configuration file for a M5407C3 board ; -------------------------------------- ; ; the initialistion list used to setup the target system [INIT] ; ; === Set Memory Map === WCREG 0xC0F 0x10000001 ;MBAR: map internal registers to 0x10000000 WCREG 0xC04 0x20000021 ;RAMBAR0: map internal SRAM to 0x20000000 WCREG 0xC05 0x20000821 ;RAMBAR1: map internal SRAM to 0x20000800 ; ; === Flash Chipselect === WM16 0x10000080 0x7FE0 ;CSAR0: Flash at 0x7FE00000 WM16 0x1000008A 0x1980 ;CSCR0: Flash 6 waits, 16bit, WM32 0x10000084 0x001F0001 ;CSMR0: Flash 2MB, R/W, valid ; ; === Init Parallel Port === WM16 0x10000004 0xFF00 ;PAR: P[15:8] = A[31:24], P[7:0]= IO WM16 0x10000244 0xFFFF ;PADDR: all outputs WM16 0x10000248 0x0003 ;PADAT: setup SDRAM helper MUX ; ; === Init DRAM Controller (same as dBug) === WM16 0x10000100 0x822F ;DCR: SDRAM Trc=6, RC=47 WM32 0x10000108 0x00001304 ;DACR0: base=0x00000000; timing=2,4,2,1,-1; CBM=011;PM WM32 0x1000010C 0x00FC0001 ;DMR0: mask=16MB; enable WM32 0x10000108 0x0000130C ;DACR0: Initiate Precharge All Command WM32 0x00000190 0x00000000 ;Execute PALL command WM32 0x10000108 0x00009304 ;DACR0: enable refresh WM32 0x10000110 0x01001304 ;DACR1: base=0x01000000; timing=2,4,2,1,-1; CBM=011;PM WM32 0x10000114 0x00FC0001 ;DCMR1: mask=16MB; enable WM32 0x10000110 0x0100130C ;DACR1: Initiate Precharge All Command WM32 0x01000190 0x00000000 ;Execute PALL command WM32 0x10000110 0x01009304 ;DACR1: enable refresh DELAY 20 ;Delay for Refresh WM32 0x10000108 0x00009344 ;DACR0: Initiate Mode Register Set Command WM32 0x00000190 0x00000000 ;Execute MRS command WM32 0x10000110 0x01009344 ;DACR1: Initiate Mode Register Set Command WM32 0x01000190 0x00000000 ;Execute MRS command ; ; === Enable Caches === WCREG 0x002 0x01040100 ;CACR: invalidate IC and DC ;WCREG 0x002 0x80088000 ;CACR: Enable DC and IC, write-through WCREG 0x002 0x82088000 ;CACR: Enable DC and IC, copyback [TARGET] CPUTYPE MCF5407 CPUCLOCK 75000000 ;the PSTCLK clock rate after processing the init list ;BREAKMODE HARD ;SOFT or HARD 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 DUMP E:\temp\dump.bin [FLASH] WORKSPACE 0x20000000 ;workspace in target RAM for fast programming algorithm CHIPTYPE AM29BX16 ;Flash type is AM29PL160C 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 D:\abatron\bdi360\ColdFire\pro\m5407c3.sss ;ERASE 0x7FE00000 ;erase sector 0 of flash ;ERASE 0x7FE04000 ;erase sector 1 of flash ;ERASE 0x7FE06000 ;erase sector 2 of flash ;ERASE 0x7FE08000 ;erase sector 3 of flash ERASE 0x7FE40000 ;erase sector 4 of flash ERASE 0x7FE80000 ;erase sector 5 of flash ERASE 0x7FEC0000 ;erase sector 6 of flash ERASE 0x7FF00000 ;erase sector 7 of flash ERASE 0x7FF40000 ;erase sector 8 of flash ERASE 0x7FF80000 ;erase sector 9 of flash ERASE 0x7FFC0000 ;erase sector 10 of flash [REGS] DMM1 0x10000000 FILE E:\cygwin\home\bdidemo\coldfire\reg5407.def