初级会员

- 积分
- 117
- 金钱
- 117
- 注册时间
- 2013-9-29
- 在线时间
- 1 小时
|
5金钱
由于用到的IO口限制,所以我用到了PB3,4这两个口是和J_LINK有关的,然后我把它重映射了一下
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB |RCC_APB2Periph_AFIO, ENABLE); //使能PC,D,G端口时钟
GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable, ENABLE);
// 改变指定管脚的映射 GPIO_Remap_SWJ_Disable SWJ 完全禁用(JTAG+SW-DP)
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable , ENABLE);
// 改变指定管脚的映射 GPIO_Remap_SWJ_JTAGDisable ,JTAG-DP 禁用 + SW-DP 使能
然后就只能用SW模式下载,下载时会出现这种错误
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFULL
* JLink Info: Could not measure total IR len. TDO is constant high.
**JLink Warning: No matching core found.
* JLink Info: Could not measure total IR len. TDO is constant high.
* JLink Info: Could not measure total IR len. TDO is constant high.
* JLink Info: Resetting target using RESET pin
* JLink Info: Halting CPU core
**JLink Warning: Received 0 as core Id.
***JLink Error: Could not find supported CPU core on JTAG chain
Bad JTAG communication: Write to IR: Expected 0x1, got 0x7 (TAP Command : 2) @ Off 0x5.
请问该如何解决
|
|