openocd_jlink.cfg 348 B

12345678910111213141516171819202122
  1. # debug adapter
  2. interface jlink
  3. jlink serial 0
  4. transport select jtag
  5. adapter_khz 15000
  6. # server port
  7. gdb_port 3333
  8. telnet_port 4444
  9. # add cpu target
  10. set _CHIPNAME riscv
  11. jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x04e4796b
  12. set _TARGETNAME $_CHIPNAME.cpu
  13. target create $_TARGETNAME riscv -chain-position $_TARGETNAME
  14. # command
  15. init
  16. halt