FrontPage

reset_config srst_only srst_pulls_trst

if { [info exists CHIPNAME] } {

  set  _CHIPNAME $CHIPNAME   

} else {

  set  _CHIPNAME AT91SAM7L128

}

if { [info exists ENDIAN] } {

  set  _ENDIAN $ENDIAN   

} else {

  set  _ENDIAN little

}

if { [info exists CPUTAPID ] } {

  set _CPUTAPID $CPUTAPID

} else {

# set _CPUTAPID 0x3f0f0f0f

# set _CPUTAPID 0x27330740

# set _CPUTAPID 0x05B1E03F

  set _CPUTAPID 0x3F0F0F0F

}

jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID

set _TARGETNAME [format "%s.cpu" $_CHIPNAME]

target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi

$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0

#flash bank <driver> <base> <size> <chip_width> <bus_width> flash bank at91sam7 0 0 0 0 0

init


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS