You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
677 B

  1. #
  2. # Be sure you include the speed and interface before this file
  3. # Example:
  4. # -c "adapter speed 5000" -f "interface/ftdi/olimex-arm-usb-tiny-h.cfg" -f "board/sifive-e31arty.cfg"
  5. set _CHIPNAME riscv
  6. jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000001
  7. set _TARGETNAME $_CHIPNAME.cpu
  8. target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
  9. $_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1
  10. flash bank spi0 fespi 0x40000000 0 0 0 $_TARGETNAME.0 0x20004000
  11. init
  12. if {[ info exists pulse_srst]} {
  13. ftdi set_signal nSRST 0
  14. ftdi set_signal nSRST z
  15. }
  16. halt
  17. flash protect 0 64 last off
  18. echo "Ready for Remote Connections"