JTAG_Set(SWD_ENABLE); //关闭 JTAG,开启 SWD GPIOA->CRL&=0XFFFFFFF0; //PA0 设置成输入 GP...
PA13是JTAG需要用的引脚,在默认条件下,他是用作JTAG的,你必须使用Jtag_sET函数,来禁止jtag。才能使用。 2019-4-24 08:17:10 评论 举报 蒋美燕 提交评论 答案对人有帮助,有参考价值 0 这个语句关闭JTAG, JTAG_Set(JTAG_SWD_DISABLE);是关闭了吗? PC1没有任何改动,触摸屏是要用的,原理图上PA13...
为了使得TIM2能够重映射到PA15和PB3,所以得对TIM2进行重映射,但是这样是不够的,因为下载调试端口SWD默认就占用了该引脚,所以重映射无效,因此必须先启动时钟 void Relay_GPIO_Config(void) { GPIO_InitTypeDef GPIO_InitStructure; RCC_APB2PeriphClockCmd( RCC_APB2Periph_AFIO, ENABLE); GPIO_PinRemapConfig(GPIO_...
将下载设置为 GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE)按住复位键,点击keil里面的下载,...
5//#define JTAG_SWD_ENABLE 0X00 6void JTAG_Set(u8 mode)7 { 8 u32 temp;9 temp=mode;10 temp<<=25;11 RCC->APB2ENR|=1<<0; //开启辅助时钟 12 AFIO->MAPR&=0XF8FFFFFF; //清除MAPR的[26:24]13 AFIO->MAPR|=temp; //设置jtag模式 14 } 库版本:RCC_...
(but may be accurate - of some value) We've induced many of our tech clients to move to, "real IDEs" - those able to support ARM MCUs from multiple vendors; those fully embracing SWD; and those which include in-built cycle-counters, detai...
(see page 679), and GPIO Digital Enable (GPIODEN) register (see page 682) are not committed to storage unless the GPIO Lock (GPIOLOCK) register (see page 684) has been unlocked and the appropriate bits of the GPIO Commit (GPIOCR) register (see page 685) have been set....
若JTAG接口未与其他JTAG电路连接,JTD位应置为’1’ ,以避免JTAG接口TDO引 脚的静态电流。
如果非要把这三个引脚的配置放在其他GPIO配置之前,那么在程序中每次使用这些引脚前,需要再添加一句 GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); 例如: GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); GPIO_ResetBits(GPIOB, GPIO_Pin_4); // PB4 is set to 0;...
SWD:Serial Wire Debug,代表串行线调试,是ARM设计的调试接口协议,用于对其微控制器进行编程和调试。由...