OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [openocd/] [openocd_neorv32.cfg] - Diff between revs 59 and 69

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 59 Rev 69
Line 1... Line 1...
# config file for generic FT2232H based USB-jtag interface
# openOCD configuration file for generic FT2232H-based USB-jtag interface
# references: https://mcuoneclipse.com/2019/10/20/jtag-debugging-the-esp32-with-ft2232-and-openocd/
# references: https://mcuoneclipse.com/2019/10/20/jtag-debugging-the-esp32-with-ft2232-and-openocd/
 
 
 
# ----------------------------------------------
 
# Interface configuration
 
# ----------------------------------------------
 
 
# FT2232H pinout:
# FT2232H pinout:
# TCK:  D0
# TCK:  D0
# TDI:  D1
# TDI:  D1
# TDO:  D2
# TDO:  D2
# TMS:  D3
# TMS:  D3
Line 15... Line 19...
 
 
adapter speed 1000
adapter speed 1000
ftdi_layout_signal nTRST -ndata 0x0010 -noe 0x0040
ftdi_layout_signal nTRST -ndata 0x0010 -noe 0x0040
transport select jtag
transport select jtag
 
 
 
# ----------------------------------------------
 
# Target configuration
 
# ----------------------------------------------
 
 
set _CHIPNAME neorv32
set _CHIPNAME neorv32
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x0cafe001
set _JTAGID 0x0cafe001
 
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_JTAGID
 
 
set _TARGETNAME $_CHIPNAME.cpu
set _TARGETNAME $_CHIPNAME.cpu
 
 
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
 
 
# work area ("scratch pad RAM"): beginning of internal DMEM, 256 bytes, REQUIRES backup
# ----------------------------------------------
 
# Scratch pad RAM
 
# ----------------------------------------------
 
 
 
# work area ("scratch pad RAM"): beginning of (internal) DMEM, 256 bytes, requires(!) backup
$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 256 -work-area-backup 1
$_TARGETNAME.0 configure -work-area-phys 0x80000000 -work-area-size 256 -work-area-backup 1

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.