; bdiGDB configuration file for IDT79EB365 board ; ---------------------------------------------- ; ; This configuration uses the IDT/SIM monitor setup the board ; [INIT] WCP0 12 0x10010000 ;Setup Status Register, clear BEV WCP0 13 0x00000000 ;Clear Cause Register WCP0 16 0x00000003 ;Set kseg0 coherency WM32 0xB802803C 0x00000000 ;Disable Watchdog Timer WM32 0xB8028030 0x00000000 ;errcntlstatus ; ; Init memory controller WM32 0xB8010000 0x1C000000 ;Memory Base Address Bank 0 WM32 0xB8010004 0xFC000000 ;Memory Base Mask Bank 0 WM32 0xB8010018 0x028A2205 ;Memory Control Bank 0 WM32 0xB801001C 0x00000A44 ;Memory Time Control Bank 0 WM32 0xB8010010 0x08000000 ;Memory Base Address Bank 1 WM32 0xB8010014 0xFF800000 ;Memory Base Mask Bank 1 WM32 0xB8010008 0x028A2206 ;Memory Control Bank 1 WM32 0xB801000C 0x00000A44 ;Memory Time Control Bank 1 WM32 0xB8010020 0x0C000000 ;Memory Base Address Bank 2 WM32 0xB8010024 0xFF000000 ;Memory Base Mask Bank 2 WM32 0xB8010028 0x04108324 ;Memory Control Bank 2 WM32 0xB801002C 0x00000A44 ;Memory Time Control Bank 2 WM32 0xB8010034 0x00000000 ;Memory Base Mask Bank 3 WM32 0xB8010044 0x00000000 ;Memory Base Mask Bank 4 WM32 0xB8010054 0x00000000 ;Memory Base Mask Bank 5 ; ; Set GPIO WM32 0xB8048000 0x000000BF ;GPIO26 is used for USB ; ; Init SDRAM controller WM32 0xB8018010 0x18433080 ;Disable SDRAM refresh WM32 0xB8018000 0x00000000 ;SDRAM base addresses & masks WM32 0xB8018004 0xFE000000 WM32 0xB8018008 0x02000000 WM32 0xB801800C 0x00000000 DELAY 100 ; WM32 0xB8018010 0x184330c3 ;Configure SDRAM (sequence from IDT/SIM) WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x184330C3 WM32 0xA0000000 0xA5A5A5A5 ; WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 WM32 0xB8018010 0x18433093 WM32 0xA0000000 0xA5A5A5A5 ; WM32 0xB8018010 0x18433083 WM32 0xA0000080 0xA5A5A5A5 ; WM32 0xB801802C 0x00000000 ;Disable DRAM Refresh Timer WM32 0xB8018024 0x00000000 ;Clear DRAM Refresh Counter WM32 0xB8018028 0x00000271 ;Set DRAM Refresh Compare WM32 0xB801802C 0x00000001 ;Enable DRAM Refresh Timer WM32 0xB8018010 0x98433080 ;Set final DRAM Refresh Compare ; ; Setup TLB ;WTLB 0x00000500 0x01FC0017 ;Boot ROM 2 x 1MB, uncached DVG ; ; Invalidate Caches IVIC 2 256 ;Invalidate IC, 2 way, 256 sets IVDC 2 64 ;Invalidate DC, 2 way, 64 sets ; ; Initialize UART0 WM32 0xB8050004 0x0 ;Disable UART interrupts WM32 0xB805000C 0x80 ;Set Divisor Latch Access bit WM32 0xB8050000 0xE8 ;Set baud rate divisor to 0x1E8 WM32 0xB8050004 0x1 ;9600bps @ 75MHz WM32 0xB805000C 0x3 ;8n1 - Reset Divisor Latch Access bit WM32 0xB8050008 0xC7 ;FIFO [TARGET] JTAGCLOCK 1 ;use 8 MHz JTAG clock CPUTYPE RC32300 ;the used target CPU type ENDIAN LITTLE ;target is big endian STARTUP RESET ;STOP mode is used to let the monitor init the system WAKEUP 500 ;give reset time to complete WORKSPACE 0xA0000080 ;workspace in target RAM for fast download BDIMODE AGENT ;the BDI working mode (LOADONLY | AGENT) BREAKMODE SOFT ;SOFT or HARD, HARD uses PPC hardware breakpoints STEPMODE SWBP ;JTAG, HWBP or SWBP [HOST] IP 157.165.159.68 ;FILE E:\cygwin\home\bdidemo\mips\fibo.x ;FORMAT ELF FILE vmlinuscedar FORMAT ELF LOAD MANUAL ;load code MANUAL or AUTO after reset [FLASH] WORKSPACE 0xa0000100 ;workspace in target RAM for fast programming algorithm CHIPTYPE AM29BX16 ;Flash type (AM29F | AM29BX8 | AM29BX16 | I28BX8 | I28BX16) CHIPSIZE 0x800000 ;The size of one flash chip in bytes (e.g. AM29F040 = 0x80000) BUSWIDTH 32 ;The width of the flash memory bus in bits (8 | 16 | 32) FILE c:\Abatron\idtrom.bin FORMAT BIN 0xBFC00000 ERASE 0xBFC00000 ERASE 0xBFC20000 [REGS] DMM1 0xFF300000 ;DSU base address DMM2 0xB8000000 ;Memory mapped registers FILE C:\abatron\reg32365.def