我使用的是板子,发现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的详细配置么?
离线
是的,需要调试裸机程序
离线