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

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [openocd/] [openocd_neorv32.cfg] - Blame information for rev 69

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 69 zero_gravi
# openOCD configuration file for generic FT2232H-based USB-jtag interface
2 59 zero_gravi
# references: https://mcuoneclipse.com/2019/10/20/jtag-debugging-the-esp32-with-ft2232-and-openocd/
3
 
4 69 zero_gravi
# ----------------------------------------------
5
# Interface configuration
6
# ----------------------------------------------
7
 
8 59 zero_gravi
# FT2232H pinout:
9
# TCK:  D0
10
# TDI:  D1
11
# TDO:  D2
12
# TMS:  D3
13
# TRST: D4 (low-active, optional - pull input pin high if not used)
14
 
15
adapter driver ftdi
16
ftdi_vid_pid 0x0403 0x6010
17
ftdi_channel 0
18
ftdi_layout_init 0x0038 0x003b
19
 
20
adapter speed 1000
21
ftdi_layout_signal nTRST -ndata 0x0010 -noe 0x0040
22
transport select jtag
23
 
24 69 zero_gravi
# ----------------------------------------------
25
# Target configuration
26
# ----------------------------------------------
27
 
28 59 zero_gravi
set _CHIPNAME neorv32
29 69 zero_gravi
set _JTAGID 0x0cafe001
30
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_JTAGID
31 59 zero_gravi
 
32
set _TARGETNAME $_CHIPNAME.cpu
33
 
34
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
35
 
36 69 zero_gravi
# ----------------------------------------------
37
# Scratch pad RAM
38
# ----------------------------------------------
39
 
40
# work area ("scratch pad RAM"): beginning of (internal) DMEM, 256 bytes, requires(!) backup
41 59 zero_gravi
$_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.