Skip to content

Instantly share code, notes, and snippets.

@yottatsa
Created January 2, 2023 00:12
Show Gist options
  • Select an option

  • Save yottatsa/f90bf1a26f5e127ef75c3cbf3cd73b87 to your computer and use it in GitHub Desktop.

Select an option

Save yottatsa/f90bf1a26f5e127ef75c3cbf3cd73b87 to your computer and use it in GitHub Desktop.
OpenOCD configuration that resets and halts Vortex86SX
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
@yottatsa
Copy link
Copy Markdown
Author

yottatsa commented Jan 4, 2023

@matwey
Copy link
Copy Markdown

matwey commented Jan 19, 2023

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!

@yottatsa
Copy link
Copy Markdown
Author

@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