STM32 JNTRST JTDI JTDO pins are used as normal IO method

Publisher:LogicLeaperLatest update time:2016-10-12 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
When STM32 starts by default, the three pins PB4, PB3, and PA15 are not ordinary IOs, but JTAG multiplexing functions, namely JNTRST, JTDI, and JTDO.

When we try to use the SWD interface to debug the simulation, these three pins can be used as normal IO.

The specific method is to disable the JTAG function. Just use the following statement.

#define GPIO_Remap_SWJ_JTAGDisable  ((uint32_t)0x00300200)  /*!< JTAG-DP Disabled and SW-DP Enabled */

GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); /*Enable SWD and disable JTAG*/

Keywords:STM32 Reference address:STM32 JNTRST JTDI JTDO pins are used as normal IO method

Previous article:Problems with floating point calculations with stm32F4
Next article:STM32F4XX Timer Notes

Recommended ReadingLatest update time:2024-11-16 14:50

Design and implementation of smart home system based on STM32
Smart home (also known as smart house) is a safe, efficient, comfortable, convenient and environmentally friendly living environment that takes residence as a platform, combines architecture, network communication, information appliances, equipment automation, and integrates systems, structures, services and managemen
[Microcontroller]
Design and implementation of smart home system based on STM32
STM32 Learning: Internal Flash
When we develop applications, we often need to save some program running parameters, such as some correction coefficients. The characteristics of these data are: small in number and do not need to be modified frequently, but they cannot be defined as constants, because each device may be different and may be modified
[Microcontroller]
STM32 Learning: Internal Flash
STM32CubeMX introduction, download and installation
Ⅰ. Write in front I believe many people know the STM32CubeMX tool, which is also a popular tool for STM32 development in recent years. This tool has had multiple versions since its first version two years ago, and its functions have become more and more powerful.   STM32CubeMX is a tool for configuring STM32 code. It
[Microcontroller]
STM32CubeMX introduction, download and installation
STM32 timer PWM output
  Pulse Width Modulation PWM (Pulse Width Modulation) adjusts the duty cycle to control the pulse width.   Except for TIM6 and TIM7, all other timers of STM32 can be used to generate PWM signals. Advanced timers TIM1 and TIM8 can generate 7 PWM outputs at the same time, and general timers can generate 4 PWM outputs at
[Microcontroller]
STM32: DMA example of serial port (USART) communication
Hardware platform: stm32f10xZET6 Development environment: keil MDK uVision v4.10 Development language: C, ST_lib_3.5 firmware library /* Code demonstration main.c */   #include "stm32f10x.h"   #include "bsp_usart1.h"   #include "bsp_led.h"      extern uint8_t SendBuff ;   static void Delay(__IO u32 nCount);   
[Microcontroller]
STM32-GPIO settings: quickly light up the first LED
Introduction The schematic diagrams of different development boards are different. Here, I use the Wildfire MINI-V3 (F103VET6) simple development board to briefly introduce the settings of the GPIO port and realize the key control of the LED light, so that readers can quickly become familiar with it and apply it flexi
[Microcontroller]
STM32-GPIO settings: quickly light up the first LED
STM32 Media Sharing Session: How to use four strategic pillars to support the Chinese market under performance pressure
Recently, STMicroelectronics (ST) released its first quarter financial report for 2024, in which MCU fell 34.4% year-on-year and 25.3% month-on-month, becoming the department with the largest decline. But as ST CEO Jean-Marc Chery said, he is full of confidence in the future, especially China is still a key market.
[Microcontroller]
STM32 Media Sharing Session: How to use four strategic pillars to support the Chinese market under performance pressure
Design and application of CAN bus repeater based on STM32
Introduction CAN bus is a multi-master serial communication bus with excellent stability, real-time performance, remote communication capability, and super hardware CRC error correction. The application of CAN bus technology is no longer limited to the automotive industry, but has expanded to the machinery, text
[Microcontroller]
Design and application of CAN bus repeater based on STM32
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号