; bdiGDB configuration file for IDT79EB438 board ; ---------------------------------------------- ; ; FLASH section has to be checked !!!! ; [INIT] WCP0 12 0x10010000 ;Setup Status Register WCP0 13 0x00000000 ;Clear Cause Register WCP0 16 0x00000003 ;Set kseg0 coherency WM32 0xB803003C 0x00000000 ;Disable Watchdog Timer ; ; Init memory controller ; WM32 0xB8010000 0x1FC00000 ;Memory Base Address Bank 0 WM32 0xB8010004 0xFFC00000 ;Memory Base Mask Bank 0 WM32 0xB8010008 0x0FFFFFFF ;Memory Base Control Bank 0 WM32 0xB801000C 0x00001FFF ;Memory Base Timing Bank 0 WM32 0xB8010010 0x08000000 ;Memory Base Address Bank 1 WM32 0xB8010014 0xFFE00000 ;Memory Base Mask Bank 1 WM32 0xB8010018 0x0FFFFFF5 ;Memory Base Control Bank 1 WM32 0xB801001C 0x00001FFF ;Memory Base Timing Bank 1 WM32 0xB8010020 0x0C000000 ;Memory Base Address Bank 2 WM32 0xB8010024 0xFC000000 ;Memory Base Mask Bank 2 WM32 0xB8010028 0x0FFFFFF4 ;Memory Base Control Bank 2 WM32 0xB801002C 0x00001FFF ;Memory Base Timing Bank 2 WM32 0xB8010030 0x10000000 ;Memory Base Address Bank 3 WM32 0xB8010034 0xFFF80000 ;Memory Base Mask Bank 3 WM32 0xB8010038 0x0FFFFFF5 ;Memory Base Control Bank 3 WM32 0xB801003C 0x00001FFF ;Memory Base Timing Bank 3 ; ; Init SDRAM controller ; WM32 0xB8018000 0x00000000 ;DDR 0 base address WM32 0xB8018004 0xFC000000 ;DDR 0 mask WM32 0xB801800C 0x00000000 ;DDR 1 mask WM32 0xB8018018 0x00000000 ;DDR Alternate mask WM32 0xB8018010 0x232A4980 ;DDR reset DELAY 1 WM32 0xB8018020 0x000000FC ;NOP WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000F1 ;Precharge WM32 0xA0000400 0xAA55AA55 WM32 0xB8018020 0x00000061 ;DDR EMode WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x00000021 ;DDR Mode WM32 0xA0000161 0xAA55AA55 DELAY 1 WM32 0xB8018020 0x000000F1 ;Precharge WM32 0xA0000400 0xAA55AA55 WM32 0xB8018020 0x000000E5 ;Refresh (9 times) WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x000000E5 WM32 0xA0000000 0xAA55AA55 WM32 0xB8018020 0x00000021 ;DDR Mode WM32 0x00000061 0xAA55AA55 WM32 0xB8028028 0x00000100 ;DDR Timer fast refresh WM32 0xB802802C 0x00000001 ;DDR Timer start WM32 0xB8018010 0xA32A4980 ;DDR Refresh Enable DELAY 1 WM32 0xB802802C 0x00000000 ;DDR Timer stop WM32 0xB8028028 0x0000040E ;DDR Timer normal refresh WM32 0xB802802C 0x00000001 ;DDR Timer start ; ; Invalidate Caches IVIC 4 512 ;Invalidate IC, 4 way, 512 sets IVDC 4 512 ;Invalidate DC, 4 way, 512 sets ; ; Initialize UART0 WM32 0xB8050004 0 ;Disable UART interrupts WM32 0xB805000C 0x80 ;Set Divisor Latch Access bit WM32 0xB8050000 0x62 ;Set baud rate divisor to 0x362 WM32 0xB8050004 0x3 ;9600bps @ 133MHz WM32 0xB805000C 0x3 ;8n1 - Reset Divisor Latch Access bit WM32 0xB8050008 0xC7 ;FIFO WM32 0xB8048000 0x3 ;Set PIO for UART0 [TARGET] ;CLOCK 1 ;BDI2000: JTAG clock 8MHz CLOCK 3 ;BDI3000: JTAG clock 8MHz CPUTYPE M4KC ;the used target CPU type ENDIAN LITTLE ;target is big endian STARTUP RESET ;RESET mode init the system WAKEUP 500 ;give reset time to complete WORKSPACE 0xA0100000 ;workspace in target RAM for fast download BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT) BREAKMODE HARD ;SOFT or HARD, HARD uses PPC hardware breakpoints STEPMODE HWBP ;JTAG, HWBP or SWBP VECTOR CATCH ;catch all unhandled exceptions [HOST] IP 157.165.29.11 FILE C:\cygwin\home\bdidemo\mips\idtsim.sre FORMAT SRE LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT EB438> ;used prompt [FLASH] WORKSPACE 0xA0000080 ;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. AM29F040 = 0x80000) BUSWIDTH 8 ;The width of the flash memory bus in bits (8 | 16 | 32) FILE E:\cygwin\home\bdidemo\mips\s334a.cnf FORMAT BIN 0xa0020000 [REGS] DMM1 0xFF300000 ;DSU base address DMM2 0xB8000000 ;Memory mapped registers FILE E:\cygwin\home\bdidemo\mips\reg32438.def