打印

JTAG 口当I/O 用后,下载不进程序了。。

[复制链接]
5591|9
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
iciciu|  楼主 | 2009-12-23 17:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
JTAG 口当I/O 用后,用仿真器下载不进程序了。。
识别不了设置,No Cortex-M Device found in JTAG Chain
咋整的呀。?大家遇到过吗》?
沙发
vigia| | 2009-12-23 17:53 | 只看该作者
从RAM BOOT即可。


我要求版主把这句话挂到版头上。。。。

使用特权

评论回复
板凳
香水城| | 2009-12-23 18:19 | 只看该作者
呵呵,你把JTAG的引脚当作I/O引脚来用,原来的JTAG功能当然会失效了。

请按照2楼说的做。

使用特权

评论回复
地板
zwll| | 2009-12-23 18:43 | 只看该作者
呵呵;P

使用特权

评论回复
5
hsbjb| | 2009-12-23 22:05 | 只看该作者
你要下载程序,肯定不能配置成普通I/O口

使用特权

评论回复
6
iciciu|  楼主 | 2009-12-24 09:51 | 只看该作者
Using serial wire and releasing the unused debug pins as GPIOs
To use the serial wire DP to release some GPIOs, the user software must set
SWJ_CFG=010 just after reset. This release PA15, PB3 and PB4 which now become
available as GPIOs.
When debugging, the host performs the following actions:
● Under system RESET, all SWJ pins are assigned (JTAG-DP + SW-DP)
● Under system RESET, the debugger host sends the JTAG sequence to switch from the
JTAG-DP to the SW-DP.
● Still under system RESET, the debugger sets a breakpoint on vector reset
● The System Reset is released and the Core halts.
● All the debug communications from this point are done using the SW-DP. The other
JTAG pins can then be reassigned as GPIOs by the user software.

使用特权

评论回复
7
iciciu|  楼主 | 2009-12-24 09:52 | 只看该作者
按理说,下载程序的时候,应该处于复位状态或是  the Core halts  ,程序还没运行呀,此时I/O口还应该是默认的JTAG端口。。

使用特权

评论回复
8
vigia| | 2009-12-24 09:55 | 只看该作者
从上电到调试器控制住内核,总归有段时间的,足够运行一些代码了。

使用特权

评论回复
9
iciciu|  楼主 | 2009-12-24 10:11 | 只看该作者
明白了,谢谢各位

使用特权

评论回复
10
xsgy123| | 2009-12-24 11:56 | 只看该作者
一般JTAG口应该不用配置吧

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

22

主题

402

帖子

1

粉丝