OpenOCD- Jlink&IAR via GDB Server
2012-04-03 20:25
204 查看
After installation of OpenOCD
/article/8505288.html
we can test GCB Sever before development.
What is GDB Server?
from wikipedia:
gdbserver is a computer program that makes it possible to remotely debug other
programs.[1] Running
on the same system as the program to be debugged, it allows the GNU
Debugger to connect from another system; that is, only the executable to be debugged needs to be resident on the target system, while the source code and a copy of the binary file to
be debugged reside on the developer’s local computer. The connection can be either TCP or a serial line.
@echo OpenOCD JLink GDBServer
c:
cd cygwin\openocd\tcl
openocd -f interface/jlink.cfg -f target/stm32f1x.cfg
pause
then I check the network connecting:
choose project>Options>Debugger
select GDB Server,
then
type localhost, 3333 //attention, there is a comma before 3333
so why is 3333? we check it out.
openocd use the tcp port 3333.
check it again:
It proves what is GDB server.
Done. It is a little slower than using jlink directly.
/article/8505288.html
we can test GCB Sever before development.
What is GDB Server?
from wikipedia:
gdbserver is a computer program that makes it possible to remotely debug other
programs.[1] Running
on the same system as the program to be debugged, it allows the GNU
Debugger to connect from another system; that is, only the executable to be debugged needs to be resident on the target system, while the source code and a copy of the binary file to
be debugged reside on the developer’s local computer. The connection can be either TCP or a serial line.
Step1: Run OpenOCD GDB Server
run your openocd, telling it you jtag interface and target like this, I write a bat file for windows.@echo OpenOCD JLink GDBServer
c:
cd cygwin\openocd\tcl
openocd -f interface/jlink.cfg -f target/stm32f1x.cfg
pause
then I check the network connecting:
Step2: IAR Setting
open a IAR Project, then make the projects.choose project>Options>Debugger
select GDB Server,
then
type localhost, 3333 //attention, there is a comma before 3333
so why is 3333? we check it out.
openocd use the tcp port 3333.
Step3 Debugging
then start debugging: Project>Download> Debugcheck it again:
It proves what is GDB server.
Done. It is a little slower than using jlink directly.
相关文章推荐
- OpenOCD- Jlink&IAR via GDB Server
- 5 gdb server建立 利用openocd配合jlink仿真器。 下载openocd-0.3.1.tar.bz2文件,解压。 下载libusb,用来支持jlink。 运行以下命令编译op
- stlink+openocd与jlink+jlink_gdb_server
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- eclipese with gdbserver and Jlink configuration
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- linux下远程调试windows上jlink gdbserver的方法
- 学习记录:交叉编译环境配置(buildroot and gdb&gdbserver)
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- MSSQLSERVER CAN NOT START AFTER ENABLE & DIABLE VIA
- eclipese with gdbserver and Jlink configuration
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- gdbserver: can't bind address: address already in use
- (Jlink)GdbServer
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- ubuntu下arm-linux-gdb+JLinkGDBServer调试TQ2440
- Eclipse配合GDB和jlinkGDBServer仿真调试STM32
- How to attach to running target w/o reset from Linux JLinkGDBServer