; Configuration file for the MCF5235 ; ----------------------------------- ; Setup BCC Board - John Sept 27/06 - This is a comment to keep us honest since we can ; uncomment and comment from BCC to BJCS. ; ; Changed by Robert for 5235 application from generic file. Note this file is tailored to BCC and BJ board. ; ; 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 WM32 0x40120000 0x02000000 ; SYNCR : Speed-up PLL to 150MHz for M5235BCC ;WM32 0x40120000 0x00000000 ; SYNCR : Speed-up PLL to 100MHz for BJCS DELAY 100 ; delay after changing the PLL ; ; Init Parallel Port WM8 0x40100040 0xE1 ; Adress/Data Pin Assignment Register(PAR_AD) ... A[23:21 & D[15:0] ; ; Init Chip-Select Module WM16 0x40000080 0xFFE0 ; CSAR0: Flash at 0xFFE00000 MCF5235BCC ;WM16 0x40000080 0xFF80 ; CSAR0: Flash at 0xFF800000 BJCS Board WM16 0x4000008A 0x1580 ; CSCR0: Flash 5 waits, 16bit WM32 0x40000084 0x001F0001 ; CSMR0: Flash 2MB, R/W, valid MCF5235BCC ;WM32 0x40000084 0x007F0001 ; CSMR0: Flash 8MB, R/W, valid BJCS Board ; ; 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 [TARGET] CPUTYPE MCF5235 CPUCLOCK 150000000 ; the CPU clock rate after processing the init list STARTUP RESET ; force target to debug immediately out of reset BREAKMODE SOFT ; SOFT or HARD VECTOR CATCH ; catch unhandled exceptions WAKEUP 100 ; time to wait after reset to start communications [HOST] IP 151.120.25.119 FORMAT SREC ;LOAD AUTO ;load code MANUAL or AUTO after reset ;FILE image.s19 ;FILE image-m5235evb-20041103.s19 PROMPT BCC> ;PROMPT bdi> ;PROMPT MCF5235> ;PROMPT bjcs> [FLASH] ;CHIPTYPE AM29F ; program flash (CS0, 0xff80_0000 > 0xffC00_0000, 8M byte, 16 bit, 120 ns) CHIPTYPE AM29BX16 CHIPSIZE 0x200000 ; Size of flash chip MCF5235BCC ;CHIPSIZE 0x800000 ; Size of flash chip BJCS Board BUSWIDTH 16 ; The width of the flash memory bus in bits (8 | 16 | 32) ;FILE colilo.s19 ; name of file to program into flash ;FILE m523xevb_eflash.S19 ;FILE m5235bcc_dbug_1b.s19 ;FILE M5235BCC.s19 FILE u-boot.srec ;FILE boot.s19 FORMAT SREC ; type of file to program WORKSPACE 0x20000000 ; workspace in target RAM for fast programming algorithm ERASE 0xffe00000 CHIP ; for the M5235BCC ;ERASE 0xff800000 CHIP ; for the BJCS ;ERASE 0xff800000 ; sector erase [REGS] DMM1 0x40000000 FILE reg5235.def