STM32 JTAG pin description

Publisher:和谐共融Latest update time:2015-09-22 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
PA3, PA4, PA13, PA14, and PA15 of STM32 are pins used for JTAG

If you want to use it as a normal IO port, you need to configure

Add in pin initialization

GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);

in

GPIO_Remap_SWJ_NoJTRET    SWJ is fully enabled except JTRST (JTAG+SWJ);

GPIO_Remap_SWJ_JTAGDisable    JTAG-DP disable + SW-DP enable;

GPIO_Remap_SWJ_Disable   SWJ is completely disabled (JTAG+SW-DP);

 

 

After power-on reset, the IO port is configured as floating output mode;

The JTAG pins are placed in input pull-up or pull-down mode:

PA15: JTDI is placed on pull-up

PA14: JTCK is placed in pull-down

PA13: JTMS is placed on pull-up

PB4: JNTRST is pulled up

Keywords:STM32 Reference address:STM32 JTAG pin description

Previous article:STM32 BOOT1 and BOOT0 settings
Next article:[STM32 Cotex-M3 processor series programming] Timer light is on

Recommended ReadingLatest update time:2024-11-23 05:00

The jatg port of stm32 is configured as a normal io port
When using stm32, spi3 and jtag ports overlap. If you want to use spi3 or use the jtag port as a normal io port, you can refer to the following configuration: 1. Use the spi3 interface and refer to the tutorial by Mr. Lu Youliang . This code implements this function. 2. The jtag port of stm32 can be configured to SW
[Microcontroller]
STM32 usart2 serial port debugging
First, refer to http://wenku.baidu.com/view/78f6b1350b4c2e3f572763e9.html to adjust usart1 Then modify the program and configure Usart2. After the configuration, the program is still not correct. Then add a sentence in the void GPIO_cfg() function.  GPIO_PinRemapConfig(GPIO_Remap_USART2, ENABLE); The final procedure i
[Microcontroller]
stm32 notes: RCC clock experiment
C Code   //STM32F103RBT6, the startup code included is STM32F10x.s   #include "mytype.h"       //GPIOA8 is LED0   #define GPIOA_CRL (*(vu32*)(0x40000000+0x10000+0x0800+0x00)) //volatile unsigned long   #define GPIOA_CRH (*(vu32*)(0x40000000+0x10000+0x0800+0x04))   #define GPIOA_IDR (*(vu32*)(0x40000000+0x1000
[Microcontroller]
stm32 notes: RCC clock experiment
Overview of STM32 GPIO registers
A GPIO register is generally divided into three categories: a. control register; b. data register; c. latch register A. Control register (GPIO_CRL or GPIO_CRH (CRL corresponds to the lower 8 bits, CRH corresponds to the upper 8 bits)). See page 106 of the manual for details. CNFx MODE XX00-----Input mode (generally n
[Microcontroller]
STM32 Beginner's Notes 5 ADC (Part 1)
I wrote a separate API interface file for ADC, as shown below: ===============================================================                                                  ADC_Config.C =============================================================== /**  ** File name: ADC_Config.C  ** Function description:
[Microcontroller]
STM32 Beginner's Notes 5 ADC (Part 1)
STM32 serial port routine query and receive
      With STM32, using the serial port is like playing a game. I will not talk about the joy of the STM32 serial port here, but directly show the code, and readers can experience the fun from the code. Sending and receiving are both in query mode, and the serial port debugging tool uses HyperTerminal or this one--Secu
[Microcontroller]
stm32.cube (II)——HAL structure and initialization
1. HAL Structure The role of HAL is to abstract the basic register read and write operations so that programmers only need to care about the behavioral operations of the chip module. The cube package of stm32 is designed with a similar object-oriented concept. Each chip module is abstracted into a class. Its private m
[Microcontroller]
STM32 complementary PWM output enable control
The advanced timer TIM1 of STM32 can generate complementary PWM, and the PWM output can be enabled or disabled by setting the relevant registers. When writing the BLDC driver, I used the three channels of TIM1, channel 1, 2, and 3 to generate three complementary PWM waveforms. The timer driver is as follows: void TIM
[Microcontroller]
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号