dubhe_olimex_flash_write.cfg 874 B

123456789101112131415161718192021222324252627282930
  1. adapter driver ftdi
  2. ftdi device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H"
  3. ftdi vid_pid 0x15ba 0x002a
  4. transport select jtag
  5. adapter speed 20000
  6. ftdi layout_init 0x0808 0x0a1b
  7. ftdi layout_signal nSRST -oe 0x0200
  8. ftdi layout_signal nTRST -data 0x0100 -oe 0x0100
  9. ftdi layout_signal LED -data 0x0800
  10. set _CHIPNAME riscv
  11. jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x00000cfd
  12. set _TARGETNAME $_CHIPNAME.cpu
  13. target create $_TARGETNAME riscv -chain-position $_TARGETNAME
  14. echo "configure work area .................."
  15. $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x80000000 -work-area-backup 0
  16. echo "configure work area complete.................."
  17. echo "configure flash bank.................."
  18. flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME 0x10010000
  19. echo "configure flash bank complete .................."
  20. init
  21. reset init
  22. halt