; bdiGDB configuration file for AT91EB40A board ; --------------------------------------------- ; [INIT] WREG CPSR 0x000000D3 ;select supervisor mode WM32 0xFFE00020 0x00000001 ;Cancel reset remapping WM32 0xFFE00024 0x00000006 ;enable A0..A20 WM32 0xFFE00000 0x01002539 ;Flash at 0x01000000 WM32 0xFFFFF124 0xFFFFFFFF ;disable all interrupts [TARGET] CPUTYPE ARM7TDMI ;CLOCK 1 ;BDI2000: JTAG clock 16MHz CLOCK 2 ;BDI3000: JTAG clock 16MHz ;WORKSPACE 0x00000020 ;workspace in target RAM for fast download ;VECTOR CATCH ;catch unhandled exceptions ;BREAKMODE SOFT 0xDFFFDFFF ;SOFT or HARD, ARM / Thumb break code BREAKMODE HARD ;SOFT or HARD, ARM / Thumb break code ;WAKEUP 1000 ;wakeup time after reset DCC 7 ;DCC I/O via TCP port 7 [HOST] IP 151.120.25.119 FILE E:\cygwin\home\demo\at91\fibo.x FORMAT ELF LOAD MANUAL ; load VxWorks code MANUAL or AUTO after reset PROMPT EB40A> ;new Telnet prompt [FLASH] WORKSPACE 0x0000100 ;workspace in target RAM for fast programming algorithm CHIPTYPE AT49X16 ;Flash type is Atmel AT49BV1604 in 16bit mode CHIPSIZE 0x200000 ;The size of one flash chip in bytes (e.g. AM29F010 = 0x20000) BUSWIDTH 16 ;The width of the flash memory bus in bits (8 | 16 | 32) FILE E:\cygwin\home\bdidemo\at91\vxWorks ;The file to program FORMAT BIN 0x01140000 ERASE 0x01140000 ;erase sector 28 of flash ERASE 0x01150000 ;erase sector 29 of flash ERASE 0x01160000 ;erase sector 30 of flash ERASE 0x01170000 ;erase sector 31 of flash ERASE 0x01180000 ;erase sector 32 of flash ERASE 0x01190000 ;erase sector 33 of flash ERASE 0x011A0000 ;erase sector 34 of flash ERASE 0x011B0000 ;erase sector 35 of flash ERASE 0x011C0000 ;erase sector 36 of flash ERASE 0x011D0000 ;erase sector 37 of flash ERASE 0x011E0000 ;erase sector 38 of flash ERASE 0x011F0000 ;erase sector 39 of flash [REGS] FILE E:\cygwin\home\bdidemo\at91\at91x40.def