stm32f407开发板连接J_LINK工作正常,不连J_LINK不工作?

[复制链接]
259|0
 楼主| 石头张 发表于 2018-7-27 12:14 | 显示全部楼层 |阅读模式
如题,调试stm32f407开发板,使用的是IAR平台,下载方式SWD,BOOT0、BOOT1配置为0,GPIO配置如下:
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;   //BOOT1
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;

  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
  GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
  GPIO_Init(GPIOB, &GPIO_InitStructure);

  GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13 | GPIO_Pin_14;//SWD
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
  GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
  GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_DOWN;
  GPIO_Init(GPIOA, &GPIO_InitStructure);
同时,在options对J_LINK做了相关设置。
现象是:调试过程中,连接J_LINK工作正常,不连J_LINK就不工作?
求解!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

446

主题

446

帖子

0

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