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

[复制链接]
6916|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
hsbjb 发表于 2009-12-23 22:05 | 显示全部楼层
你要下载程序,肯定不能配置成普通I/O口
 楼主| 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.
 楼主| iciciu 发表于 2009-12-24 09:52 | 显示全部楼层
按理说,下载程序的时候,应该处于复位状态或是  the Core halts  ,程序还没运行呀,此时I/O口还应该是默认的JTAG端口。。
vigia 发表于 2009-12-24 09:55 | 显示全部楼层
从上电到调试器控制住内核,总归有段时间的,足够运行一些代码了。
 楼主| iciciu 发表于 2009-12-24 10:11 | 显示全部楼层
明白了,谢谢各位
xsgy123 发表于 2009-12-24 11:56 | 显示全部楼层
一般JTAG口应该不用配置吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

22

主题

402

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部