Created
January 2, 2023 00:12
-
-
Save yottatsa/f90bf1a26f5e127ef75c3cbf3cd73b87 to your computer and use it in GitHub Desktop.
OpenOCD configuration that resets and halts Vortex86SX
This file contains 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
noinit | |
adapter driver usb_blaster | |
usb_blaster_lowlevel_driver ftdi | |
verify_jtag disable | |
verify_ircapture disable | |
adapter srst delay 100 | |
reset_config srst_only srst_gates_jtag separate | |
adapter speed 400 | |
set _CHIPNAME vortex | |
jtag newtap $_CHIPNAME cpu -irlen 9 -ircapture 0x2 -irmask 0xff -ignore-version -enable | |
set _TARGETNAME $_CHIPNAME.cpu | |
target create $_TARGETNAME testee -chain-position $_CHIPNAME.cpu | |
set _JTAGSPI_IR 0x02 | |
set _FLASHNAME $_CHIPNAME.flash | |
flash bank $_FLASHNAME jtagspi 0 0 0 0 $_TARGETNAME $_JTAGSPI_IR | |
init | |
pathmove RESET RUN/IDLE | |
pathmove RESET RUN/IDLE | |
pathmove RESET RUN/IDLE | |
irscan $_TARGETNAME 0x1 | |
irscan $_TARGETNAME 0x1 | |
irscan $_TARGETNAME 0xf | |
drscan $_TARGETNAME 17 0 | |
#reset halt | |
#wait_halt 1000 |
@matwey you can use https://archive.org/details/vortex86-jflash and a parallel cable, as this is a work-in-progress.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried to connect my Vortex86SX board with JTAG and FT232H adapter to OpenOCD in order to learn how to read/flash BIOS. But didn't know that it could be so hard. Surprisingly, I've already learn how to do that!