---
title: "openocd调试mips芯片"
author: "steeven"
date: "2012-08-31T11:23:25Z"
tags: []
categories: ["移动开发"]
slug: "openocd-mips"
draft: false
lastmod: "2012-08-31T11:23:25Z"
id: 1668694
url: "https://steeven.iteye.com/blog/1668694"
---

启动openocd:
bin\openocd-0.6.0-rc2.exe -f parport.cfg -d -f scripts\board\pic-p32mx.cfg
启动telnet:
telnet localhost 4444
> 查看当前有哪些设备

> > scan_chain
>    TapName             Enabled  IdCode     Expected   IrLen IrCap IrMask
> -- ------------------- -------- ---------- ---------- ----- ----- ------
>  0 auto0.tap              Y     0x1008c17f 0x1008c17f     5 0x01  0x03
> 

> flush_count 查看已经发送多少命令

查看idcode(ejtag是0x1)

> > irscan auto0.tap 0x1; drscan auto0.tap 32 0
> 1008C17F
> >