openocd.cfg 683 B

123456789101112131415161718192021222324
  1. adapter_khz 10000
  2. interface ftdi
  3. ftdi_device_desc "Dual RS232-HS"
  4. ftdi_vid_pid 0x0403 0x6010
  5. ftdi_layout_init 0x0008 0x001b
  6. ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020
  7. set _CHIPNAME riscv
  8. jtag newtap $_CHIPNAME cpu -irlen 5
  9. set _TARGETNAME $_CHIPNAME.cpu
  10. target create $_TARGETNAME riscv -chain-position $_TARGETNAME -rtos riscv
  11. $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1
  12. flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME 0x10040000
  13. init
  14. halt
  15. # Uncomment this if you want to be able to clobber your SPI Flash, which
  16. # probably you don't since you can do it through Linux
  17. # flash protect 0 0 last off