STM32 JTAG interface hardware design

Publisher:疯狂小马Latest update time:2016-12-08 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

JTAG interface design-1

1. What is the JTAG interface?

From a sensory point of view, the JTAG interface is the blue 20-pin horn socket in the picture above.

2.What is the function of JTAG interface?

1) Download the program to the MCU.
2) Debug the MCU online, such as single-step debugging, power-off debugging, viewing register values, etc.

3.Does the STM32 JTAG interface require external pull-up and pull-down resistors?

A: You can accept or not accept. (There is no need to discuss which one is right)

4.Why can I work without answering the phone?

Practice has proved that it can work normally without connecting.

Theoretical basis: The STM32 reference manual has instructions, please see the words circled in red in the figure below:

JTAG interface design-2

JTAG interface circuit:

JTAG interface design-3

The JTAG interface is also the SWD interface. JTAG uses 6 pins, while SWD uses 2 pins. (The negative and positive pins of the power supply are not mentioned.)

STM32 supports both JTAG and SWD. You only need to set the switch in the software, as shown in the following figure:

JTAG interface design-4


Keywords:STM32 Reference address:STM32 JTAG interface hardware design

Previous article:Introduction to ARM Cortex M3 series GPIO ports (discussion on working mode)
Next article:Pin mode setting of STM32 microcontroller

Recommended ReadingLatest update time:2024-11-15 07:22

Introduction to STM32 SPI pins
SPI1->CS      ------ PA4 SPI1- CLK    ------ PA5  SPI1- MISO  ------ PA6 SPI1- MOSI ------ PA7 SPI2- CS ------ PB12 SPI2- CLK ------ PB13  SPI2- MISO ------ PB14  SPI2- MOSI ------ PB15 SPI3- CS   ------ PA15 SPI3- CLK ------ PB3  SPI3- MISO ------ PB4  SPI3- MOSI ------ PB5 For SPI, you need to tur
[Microcontroller]
The difference between STM32 advanced timer, general timer TIMx, basic timer TIM6 and TIM7
The features of the TIM1 and TIM8 timers include: ● 16-bit up, down, up/down auto-load counters ● 16-bit programmable (can be modified in real time) prescaler, the counter clock frequency can be divided by any value between 1 and 65535 ● Up to 4 independent channels: ─ Input capture ─ Output compare ─ PWM generation
[Microcontroller]
Detailed explanation of STM32 IAR project -> Keil MDK conversion
Introduction: I found that most of the STM32 sample programs are based on the IAR development environment when I was studying STM32, but I think it is more convenient to use the Keil MDK development environment, and I can use the powerful peripheral simulation function of RVMDK to accelerate the development of STM32. I
[Microcontroller]
stm32 keeps interrupting and forms a dead loop
I am using the STM32F103 chip and USART2_IRQHandler is always interrupted, causing the program to loop indefinitely. 1. Problem: The interrupt handler of the original program is: void USART2_IRQHandler(void) {   u8 key = 0;   USART_ClearFlag(USART2,USART_FLAG_TC ); //Clear interrupt flag   if(USART_GetITStatus(USART2,
[Microcontroller]
Analyzing the startup process of STM32
In the current embedded application development process, C language has become the best choice for most occasions. In this way, the main function seems to be the starting point for granted - because C programs often start execution from the main function. But a question that is often overlooked is: how does the microco
[Microcontroller]
STm32 drives 74HC595 pin diagram timing diagram working principle
74HC595 is one of the commonly used chips in the single-chip microcomputer system, just like 74hc164. Its function is to convert serial signals into parallel signals. It is commonly used in various digital tubes and dot matrix screen driver chips. Using 74HC595 can save the IO port resources of the single-chip microco
[Microcontroller]
STm32 drives 74HC595 pin diagram timing diagram working principle
Stm32 crashes when jumping from IAP to app
My IAP and APP are both built with STMCUBMX, and freertos is used in the APP. However, there is a freeze problem after the jump. However, there is a log output in the APP, and then the freeze occurs, which means that there is no problem with the jump. The following jump program closes the open interrupt before the jum
[Microcontroller]
Stm32 crashes when jumping from IAP to app
stm32 learning notes (nine) PWM output
#include "pwm.h" #include "led.h" //////////////////////////////////////////////////////////////////////////////////   //This program is for learning purposes only and may not be used for any other purpose without the author's permission. //ALIENTEK Mini STM32 Development Board //PWM driver code     //Atom on point @
[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号