; Configuration file for a MCF5307 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 0x00800021 ;RAMBAR: map internal SRAM to 0x00800000 ; === Flash Chipselect === WM16 0x10000080 0xFFE0 ;CSAR0: Flash at 0xFFE00000 WM16 0x1000008A 0x0D80 ;CSCR0: Flash 3 waits, 16bit, WM32 0x10000084 0x000F0001 ;CSMR0: Flash 1MB, R/W, valid ; === Init DRAM Controller (same as dBug) === WM16 0x10000100 0x8230 ;DCR: SDRAM Trc=6, RC=48 WM32 0x10000108 0x00001300 ;DACR0: base=0x00000000; timing=2,4,2,1,-1; CBM=011 WM32 0x1000010C 0x003C0001 ;DCMR0: mask=4MB; enable WM32 0x10000108 0x00001308 ;DACR0: Initiate Precharge All Command WM32 0x00000400 0x00000000 ;Execute PALL command WM32 0x10000108 0x00009300 ;DACR0: enable refresh WM32 0x10000110 0x00401300 ;DACR1: base=0x00400000; timing=2,4,2,1,-1; CBM=011 WM32 0x10000114 0x007C0001 ;DCMR1: mask=8MB; enable WM32 0x10000110 0x00401308 ;DACR1: Initiate Precharge All Command WM32 0x00400400 0x00000000 ;Execute PALL command WM32 0x10000110 0x00409300 ;DACR1: enable refresh DELAY 20 ;Delay for Refresh WM32 0x10000108 0x00009340 ;DACR0: Initiate Mode Register Set Command WM32 0x00000400 0x00000000 ;Execute MRS command WM32 0x10000110 0x00009340 ;DACR1: Initiate Mode Register Set Command WM32 0x00400400 0x00000000 ;Execute MRS command [TARGET] CPUTYPE MCF5307 CPUCLOCK 90000000 ;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 0x00800000 ;workspace in target RAM for fast programming algorithm CHIPTYPE AM29F ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16) CHIPSIZE 0x80000 ;The size of one flash chip in bytes (e.g. AM29F010 = 0x20000) BUSWIDTH 16 ;The width of the flash memory bus in bits (8 | 16 | 32) FILE D:\abatron\bdi360\ColdFire\pro\sbc5307.sss ERASE 0xFFE00000 ;erase sector 0 of flash ERASE 0xFFE20000 ;erase sector 1 of flash ERASE 0xFFE40000 ;erase sector 2 of flash ERASE 0xFFE60000 ;erase sector 3 of flash ERASE 0xFFE80000 ;erase sector 4 of flash ERASE 0xFFEA0000 ;erase sector 5 of flash ERASE 0xFFEC0000 ;erase sector 6 of flash ERASE 0xFFEE0000 ;erase sector 7 of flash ERASE 0xFFEF0000 ;erase sector 8 of flash ERASE 0xFFEF4000 ;erase sector 9 of flash ERASE 0xFFEF8000 ;erase sector 10 of flash [REGS] DMM1 0x10000000 FILE E:\cygwin\home\bdidemo\coldfire\reg5307.def