; bdiGDB configuration for DaVinci EVM ; ------------------------------------ ; ; Commands supported in the SCANINIT and SCANPOST strings: ; ; I=<...b2b1b0> write IR, b0 is first scanned ; D=<...b2b1b0> write DR, b0 is first scanned ; n : the number of bits 1..256 ; bx : a data byte, two hex digits ; W wait for n (decimal) micro seconds ; T1 assert TRST ; T0 release TRST ; R1 assert RESET ; R0 release RESET ; CH clock TCK n (decimal) times with TMS high ; CL clock TCK n (decimal) times with TMS low ; ; [INIT] ; ; [TARGET] CPUTYPE ARM926E ;CLOCK 0 7 ;JTAG clock : start with 1 MHz then use adaptive CLOCK 7 ;JTAG clock : without adaptive clocking cable TRST PUSHPULL ;TRST driver type (OPENDRAIN | PUSHPULL) RESET HARD ;NONE | HARD (ms) ENDIAN LITTLE ;memory model (LITTLE | BIG) WAKEUP 100 SCANPRED 1 6 ;count for ICEPick TAP SCANSUCC 0 0 ;no device after ARM926e ; Configure ICEPick module to make ARM926 TAP visible SCANINIT r0:w10000: SCANINIT r1:t1:w1000:t0:w1000: ;assert reset and toggle TRST SCANINIT i6=07:d8=89:i6=02: ;connect and select router SCANINIT d32=81000082: ;set IP control SCANINIT d32=a018206f: ;configure TAP0 SCANINIT d32=a018216f:cl10: ;enable TAP0, clock 10 times in RTI SCANINIT i10=ffff ;scan bypass ; ;SCANINIT d32=a018606f: ;configure TAP0 for wait in reset (WIR) ;SCANINIT d32=81000083: ;IP control = SysReset ;SCANINIT d32=a018616f:cl10: ;enable TAP0, clock 5 times in RTI ;SCANINIT i10=ffff ;scan bypass ; ; Between SCANINIT and SCANPOST the ARM ICEBreaker is configured ; and the DBGRQ bit in the ARM debug control register is set. ; ;SCANPOST i10=002f: ;IP(router) - ARM(bypass) ;SCANPOST d33=0102000106: ;IP control = SysReset ;SCANPOST d33=014034c2de: ;TAP0 release from wait in reset ;SCANPOST i10=ffff ;scan bypass ; [HOST] IP 151.120.25.112 ;FILE E:\temp\large.bin FILE E:\temp\dump1024k.bin FORMAT BIN 0x00000000 LOAD MANUAL ;load code MANUAL or AUTO after reset PROMPT DaVinci> [FLASH] WORKSPACE 0x00001000 ;workspace in internal RAM (!!! boot mode UART !!! ) CHIPTYPE MIRRORX16 ;Flash type is Am29LV256M CHIPSIZE 0x02000000 ;Size is 32MB (only 16MB used, A23 fixed) BUSWIDTH 16 FILE E:\temp\dump16k.bin FORMAT BIN 0x021B0000 ERASE 0x021B0000 ;free sector [REGS] FILE $reg926e.def