Last active
January 2, 2024 11:19
-
-
Save xypron/2a5f98252fcb229a79eeb76a6623a4d6 to your computer and use it in GitHub Desktop.
OpenOCD for Sipeed MAIX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SiPEED USB-JTAG/TTL | |
| adapter driver ftdi | |
| transport select jtag | |
| ftdi_device_desc "Dual RS232" | |
| ftdi_vid_pid 0x0403 0x6010 | |
| ftdi_layout_init 0x0508 0x0f1b | |
| ftdi_layout_signal nTRST -data 0x0200 -noe 0x0100 | |
| ftdi_layout_signal nSRST -data 0x0800 -noe 0x0400 | |
| jtag_rclk 3000 | |
| # server port | |
| gdb_port 3333 | |
| telnet_port 4444 | |
| # add cpu target | |
| set _CHIPNAME riscv | |
| jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x04e4796b | |
| set _TARGETNAME $_CHIPNAME.cpu | |
| target create $_TARGETNAME riscv -chain-position $_TARGETNAME | |
| # command | |
| init | |
| if {[ info exists pulse_srst]} { | |
| ftdi_set_signal nSRST 0 | |
| ftdi_set_signal nSRST 1 | |
| ftdi_set_signal nSRST z | |
| } | |
| halt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment