找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 9020|回复: 6

JTAG debugging and programming

[复制链接]

2

主题

8

回帖

18

积分

新手上路

积分
18
发表于 2016-4-7 21:38:54 | 显示全部楼层 |阅读模式
Hello!

I've been trying to debug and program the osciloscope using the jtag interface without success.

I've followed the steps shown here:
http://www.seeedstudio.com/wiki/DSO_Nano/OpenOCD_gdb

To debug with OpenOCD and GDB, but I can't load the firmware, it says the device is protected.

I've been using an ST-Link V2 programmer in SWD mode with the following connections:
DSO->STLINK
1 (3v)
2 (tms)->SWDIO (7)
3 (tck) -> SWCLK (9)
4 (tdi) -> N/C
5 (rst) -> RESET (15)
6 (tdo) -> SWO (13)
7 (trst) -> N/C
8 (gnd)




This makes me wonder if there is a way to debug the code using the jtag interface.


Any help would be appreciated!


Thanks!






回复

使用道具 举报

1

主题

225

回帖

277

积分

管理员

积分
277

社区居民忠实会员

发表于 2016-4-11 09:54:59 | 显示全部楼层
What is your machine model, DS202, or NANO?
回复

使用道具 举报

2

主题

8

回帖

18

积分

新手上路

积分
18
 楼主| 发表于 2016-4-15 03:32:23 | 显示全部楼层
I have the 202, and my final goal is to debug the 202, but I tried first with a nano, just in case I break something I didn't want to break teh 202.
回复

使用道具 举报

1

主题

225

回帖

277

积分

管理员

积分
277

社区居民忠实会员

发表于 2016-4-15 09:59:12 | 显示全部楼层
diego 发表于 2016-4-15 03:32
I have the 202, and my final goal is to debug the 202, but I tried first with a nano, just in case I ...

Debug the 202 use ST-Link V2,Connect CN6 GND, VCC, SWD, SWC, DS202 to independent power supply.
回复

使用道具 举报

2

主题

8

回帖

18

积分

新手上路

积分
18
 楼主| 发表于 2016-4-19 05:45:26 | 显示全部楼层
Should I use IAR directly?  or openOCD and IAR with GDB server?
回复

使用道具 举报

1

主题

225

回帖

277

积分

管理员

积分
277

社区居民忠实会员

发表于 2016-4-19 09:47:41 | 显示全部楼层
diego 发表于 2016-4-19 05:45
Should I use IAR directly?  or openOCD and IAR with GDB server?

use IAR directly
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|MINIWARE产品技术交流 迷你工具-智能烙铁-加热平台-示波器-体感电动螺丝刀-数字电源-智能镊子 ( 粤ICP备07030012号-1 )

GMT+8, 2024-9-17 03:27 , Processed in 0.399479 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表