;********************************************************************** ; This EXAMPLE shows simple script which will automatically configure ; JTAG parameters for used ARM926 target, will halt it and will set ; default value 0x78 to ARM's processor control register c1 ; ; This script can be added to H/W Inti Script field of the DCC Loader Settings dialog ; for automatic initialization of target state prior DCC Loader uploading. ;********************************************************************** system.cpu ARM926EJ system.jc RTCK ;systen.jc 1MHz system.config IOVoltage 2600. ;if target runs - HALT it. ;we intentionally do not do SYSTEM.UP since it applies reset to the target ;and thus may put target in initial state in which there is no RAM visible and ;frequency of ARM core is too slow for convenient speed of DCC Loader data exchange if run() break //read CP15 and Disable MMU and Cache bits &data=data.long(C15:0x0001); &data=&data&(~0x0001) //MMU &data=&data&(~0x0004) //DCache off &data=&data&(~0x1000) //ICache off data.set c15:0x0001 %long &data //read back to see with own eyes data is changed &data=data.long(C15:0x0001); //or just set directly default c1 register value //so we're sure processor will be in default mode &data=0x0078 data.set c15:0x0001 %long &data //Now if to assume RAM is visible OK at this point and PLLs are confinured, //then DCC Loader can be uploaded and executed end