; Configuration file for a phyCORE-MCF5485 board ; ---------------------------------------------- ; [INIT] ; ; === Set Memory Map === WCREG 0xC0F 0x10000001 ;MBAR : map internal REGS to 0x10000000 WCREG 0x008 0x11000001 ;MMUBAR : map MMU registers to 0x11000000 WCREG 0xC04 0x20000021 ;RAMBAR0: map internal SRAM to 0x20000000 WCREG 0xC05 0x20001021 ;RAMBAR1: map internal SRAM to 0x20001000 WCREG 0x802 0x00000000 ;VBR : map vector table to 0x00000000 ; ; === Flash Chipselect === WM32 0x10000500 0xFE000000 ;CSAR0: Flash at 0xFE000000 WM32 0x10000508 0x00001900 ;CSCR0: 32bit WM32 0x10000504 0x01FF0001 ;CSMR0: Flash 32MB, R/W, valid ; ; === DDR SDRAM 128MB === WM32 0x10000004 0x000002AA ;SDRAMDS : SSTL 2 Class 1 WM32 0x10000020 0x0000001A ;CS0CFG : 128MByte WM32 0x10000024 0x00000000 ;CS1CFG WM32 0x10000028 0x00000000 ;CS2CFG WM32 0x1000002C 0x00000000 ;CS3CFG WM32 0x10000108 0x53722930 ;SDCFG1 WM32 0x1000010C 0x24330000 ;SDCFG2 ; WM32 0x10000104 0xE10F0002 ;SDCR + IPALL WM32 0x10000100 0x40010000 ;SDMR (write to LEMR) WM32 0x10000100 0x05890000 ;SDRM (write to LMR) WM32 0x10000104 0xE10F0002 ;SDCR + IPALL WM32 0x10000104 0xE10F0004 ;SDCR + IREF (first refresh) WM32 0x10000104 0xE10F0004 ;SDCR + IREF (second refresh) WM32 0x10000100 0x01890000 ;SDMR (write to LMR) WM32 0x10000104 0x710F0F00 ;SDCR (lock SDMR and enable refresh) DELAY 1000 ; ; === Define the valid memory map === MMAP 0x00000000 0x07FFFFFF ;128MB DDR SDRAM MMAP 0x10000000 0x1003FFFF ;MBAR/SRAM MMAP 0x11000000 0x1100FFFF ;MMUBAR MMAP 0x20000000 0x20000FFF ;4K SRAM0 (RAMBAR0) MMAP 0x20001000 0x20001FFF ;4K SRAM1 (RAMBAR1) MMAP 0xFE000000 0xFFFFFFFF ;CS0 (32MB) External Flash ; WAREG 7 0x000ffff0 ;set initial SP WAREG 6 0x000ffff0 ;set initial FP ; ; === Unlock some flash sectors === ;WM32 0xFE800000 0x00600060 ;Unlock sector at 0xff800000 ;WM32 0xFE800000 0x00D000D0 ;WM32 0xFE800000 0xFFFFFFFF ;set read mode ; [TARGET] CPUTYPE MCF5480 CPUCLOCK 100000000 ;the PSTCLK clock rate after processing the init list WAKEUP 10 ;give reset time to complete ;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 PROMPT phy5485> [FLASH] WORKSPACE 0x10010000 ;workspace in internal SRAM CHIPTYPE STRATAX16 ;Flash type is 28F128K3C CHIPSIZE 0x01000000 ;The size of one flash chip in bytes BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16 | 32) FILE E:\temp\dump512k.bin FORMAT BIN 0xFE800000 ERASE 0xFE800000 UNLOCK ;unlock/erase a sector ERASE 0xFE840000 UNLOCK ;unlock/erase a sector ERASE 0xFE880000 UNLOCK ;unlock/erase a sector ERASE 0xFE8C0000 UNLOCK ;unlock/erase a sector [REGS] CMM1 0xC0F 0xfffc0000 ;MBAR CMM2 0x008 0xffff0000 ;MMUBAR FILE $reg5485.def