; Configuration file for a M5249C3 board ; -------------------------------------- ; ; the initialistion list used to setup the target system [INIT] ; ; === Init SIM Module === WCREG 0xC0F 0x10000001 ;MBAR: map registers to 0x10000000 WCREG 0xC0E 0x80000001 ;MBAR2: map registers to 0x80000000 WCREG 0xC04 0x20000021 ;RAMBAR0: map 32K SRAM0 to 0x20000000 WCREG 0xC05 0x20010021 ;RAMBAR1: map 64K SRAM1 to 0x20010000 ; ; === Speed-up clock === WM32 0x80000180 0x125a3100 ;PLLCR: set CPU clock to 132MHz DELAY 100 ;Let PLL lock WM32 0x80000180 0x125a3101 ;PLLCR: switch to PLL ; ; === Flash Chipselect === WM16 0x10000080 0xFFE0 ;CSAR0: Flash at 0xFFE00000 WM16 0x1000008A 0x1180 ;CSCR0: Flash 4 waits, 16bit, WM32 0x10000084 0x001F0021 ;CSMR0: Flash 2MB, R/W, valid ; ; === Init DRAM Controller (same as dBug) === WM16 0x10000100 0x800A ;DCR: SDRAM Trc=6, RC=47 WM32 0x10000108 0x00002224 ;DACR0: base=0x00000000 WM32 0x1000010C 0x007C0001 ;DMR0: mask=16MB; enable WM32 0x10000108 0x0000222C ;DACR0: Initiate Precharge All Command WM32 0x00000000 0xa5a59696 ;Execute PALL command WM32 0x10000108 0x0000a224 ;DACR0: enable refresh DELAY 20 ;Delay for Refresh WM32 0x10000108 0x0000a264 ;DACR0: Initiate Mode Register Set Command WM32 0x00000800 0xa5a59696 ;Execute MRS command ; ; === Define the valid memory map === MMAP 0x00000000 0x007FFFFF ;Memory range for 8MB SDRAM MMAP 0x10000000 0x100004FF ;Memory map for Internal Register MMAP 0x20000000 0x20007FFF ;Memory map for On-chip SRAM0 MMAP 0x20010000 0x2001FFFF ;Memory map for On-chip SRAM1 MMAP 0x80000000 0x800004FF ;Memory map for Internal Register 2 MMAP 0xFFE00000 0xFFFFFFFF ;Memory range for Flash ROM (CS0) MMAP 0xE0000000 0xE01FFFFF ;Memory range for Ethernet (CS1) ; [TARGET] CPUTYPE MCF5249 CPUCLOCK 132000000 ;the CPU clock rate after processing the init list ;CPUCLOCK 11000000 ;the CPU clock rate after processing the init list ;CPUCLOCK 50000 ;STARTUP STOP 2000 ;RESET 1000 ;assert reset for 1 second BREAKMODE SOFT ;SOFT or HARD ;VECTOR CATCH ;catch unhandled exceptions ;SIO 7 19200 ;TCP port for serial IO redirection [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 PROMPT MCF5249> [FLASH] WORKSPACE 0x20000000 ;workspace in target RAM for fast programming algorithm CHIPTYPE AM29BX16 ;Flash type is AM29LV160DB CHIPSIZE 0x200000 ;The size of one flash chip in bytes BUSWIDTH 16 ;The width of the flash memory bus in bits (8 | 16 | 32) [REGS] DMM1 0x10000000 DMM2 0x80000000 FILE E:\cygwin\home\bdidemo\coldfire\reg5249.def