How to debug by J-Link?
I downloaded the openocd files on the official website.Follow "readme.txt", I don't know how to debug.Have more detailed steps?
This post is deleted!
@latyas What‘s the download command with J-link?
I try the commond "flash write_image erase D:/k210/hello_world" ,but no work.
@latyas OK, but which cfg file I should use if I use jlink and which cfg file I should use if I use FT2322 base debugger?
OK,Thank you! I will try this and I just bought a new OpenOCD compatible debugger and will try that later.
@latyas I also tried out this file but failed. I have three Errors.
Error: Failed to retrieve devicec list : LIBUSB_ERROR_OTHER
Error: USB device discovery failed
Error: jaylink_discovery_scan() failed: unspecified error
My Jlink hardware is JLink V9, libusb.dll is also using the latest one.
System OS is Win7-64bit
@Faiz Please check if there is a jlink serial number specified in
openocd.cfg, if so, please remove it.
A typical openocd.cfg is:
interface jlink transport select jtag adapter_khz 25000 gdb_port 3333 telnet_port 4444 set _CHIPNAME riscv jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x04e4796b set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -chain-position $_TARGETNAME init halt
If all above don't work, please let me know.
@latyas and windows show no jlink too.
Faiz last edited by Faiz
Say no J-Link found，and how should I modify the 'openocd.cfg'?
openocd -f YOUR_CONFIG.cfg