您尚未登录。

楼主 # 2024-01-16 23:12:08

eagletskt
会员
注册时间: 2020-04-13
已发帖子: 8
积分: 8

T113的OpenOCD在线调试的坑

我使用的是板子,发现JTAG默认配置的引脚是GPIOF0, GPIOF1, GPIOF3 and GPIOF5;改配置成PE8、PE9、PE10、PE11;还得做个电平转换,1.8转3.3;

xfel read32 0x020000f0   
0x0f3f3f33
xfel read32 0x020000C4
0xffffffff

xfel write32 0x020000f0 0xFFFFFFF
xfel write32 0x020000C4 0xFFFF6666

xfel jtag
xfel ddr t113-s3

然后运行:

sudo ./openocd-0.12.0-rc1/install/bin/openocd -d -f openocd_t113.cfg

Open On-Chip Debugger 0.12.0-rc1
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'ftdi layout_init' not 'ftdi_layout_init'
Ready for Remote Connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: devens_a7.cpu: IR capture error; saw 0x0f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Invalid ACK (7) in DAP response
Error: JTAG-DP STICKY ERROR

有哪位大佬有ftdi的OpenOCD的详细配置么?

离线

#1 2024-01-17 19:16:46

ktouch
会员
注册时间: 2023-11-27
已发帖子: 18
积分: 3

Re: T113的OpenOCD在线调试的坑

你需要用JTAG调试?一般JTAG之用在裸机程序

离线

楼主 #2 2024-01-17 22:26:41

eagletskt
会员
注册时间: 2020-04-13
已发帖子: 8
积分: 8

Re: T113的OpenOCD在线调试的坑

是的,需要调试裸机程序

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn