Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NAN note: use the "raspberrypi2-native.cfg" for Rpi2 and Rpi3 models!
- source [find raspberrypi2-native.cfg]
- transport select jtag
- adapter_khz 1000
- debug_level 4
- set _CHIPNAME riscv
- #for HiFive1:jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
- jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x0000010D
- ##
- set _TARGETNAME $_CHIPNAME.cpu
- target create $_TARGETNAME riscv -chain-position $_TARGETNAME
- $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000
- # -work-area-backup 1 ea-backup 1
- #scan_chain
- #flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME
- init
- #reset -- This type of reset is not implemented yet
- if {[ info exists pulse_srst]} {
- #ftdi_set_signal nSRST 0
- #ftdi_set_signal nSRST z
- #Wait for the reset stretcher
- #It will work without this, but
- #will incur lots of delays for later commands.
- sleep 1500
- }
- halt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement