Download stm32 program via USB to TTL serial port

Publisher:FreeSpirit123Latest update time:2017-09-24 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Table of contents:

1. Hardware and wiring

2. Drivers and software

3. Download program test

 

1. Hardware and wiring

   1.1 USB to TTL flashing board (CH340 module upgrade board)

      

 

 

    1.2 Main chip STM32F103C8T6 development board

   1.3 Wiring

       1.3.1 Serial port module wiring

 

Note: 3V3 and 5V are selected by short circuit cap.

         1.3.2 Core board wiring

 

Among them, BOOT0 is set to 1 and BOOT1 is set to 0.

2. Drivers and software

   2.1 CH340 driver and installation method

 

    2.2 Program download software

 

3. Download test

   Download the experimental first-class water lamp program test.

   Experimental first-class water lantern

 

 

After the program is written successfully, both BOO0 and BOOT1 are set to 0.

The experimental results show that the program was successfully downloaded to the minimum system board as expected.


Reference address:Download stm32 program via USB to TTL serial port

Previous article:Experiment on sending and receiving data using the STM32 serial port
Next article:STM32 study notes on the use of independent watchdog (IWDG)

Recommended ReadingLatest update time:2024-11-23 15:39

[STM32 motor square wave] Record 3——TIM1 time base initialization configuration
Timer classification: In the STM32F1x series, except for the interconnected products, there are a total of 8 timers, which are divided into basic timers, general timers and advanced timers. The basic timer TIM6 and TIM7 are 16-bit timers that can only count up and have no external IO. The general timer TIM2/3/4/5 is a
[Microcontroller]
[STM32 motor square wave] Record 3——TIM1 time base initialization configuration
STM32 PWM duty cycle variable function
When the frequency is 10K, the duty cycle can achieve a change accuracy of 1%, while when it is 100K, the change accuracy can only be 10%. #define PWM_CLK1M_ARR_10K 100-1   void IzADCPWMInit(uint8_t duty)//10%~90% {     if(duty 90)   {  duty = 90;   }   if(duty 10)   {  duty = 10;   }  //reset    /* TIM4 enable c
[Microcontroller]
How to deal with STM32 external 12MHz crystal oscillator
How to deal with STM32 external 12MHz crystal oscillator http://www.amobbs.com/thread-4478412-1-1.html (Source: amoBBS Amo Electronics Forum) Since the STM32F10x library officially uses the default external 8MHz crystal, many users also use the 8MHz crystal. However, the 8MHz crystal is not necessary, and other freque
[Microcontroller]
The "unplug jlink" program in stm32 cannot run correctly
Q: When debugging the stm32 program, why can't the program on the development board run correctly after unplugging the jlink from the computer USB port? It also doesn't work after the breakpoint reset. A: First, unplug the connection between JLink and the development board (not just the connection between JLink and
[Microcontroller]
STM32 interrupts and events --- the difference between interrupts and events
  This figure is a schematic diagram of an external interrupt line or external event line. There is a slash on the signal line in the figure, and the annotation marked with the word 19 next to it indicates that there are 19 sets of such lines. The blue dotted arrow in the figure marks the transmission path of the
[Microcontroller]
STM32 interrupts and events --- the difference between interrupts and events
STM8|STM32 watchdog usage
Both STM8 and STM32 are equipped with independent watchdogs, and their role is self-evident. The following are examples of using independent watchdogs for STM8 and STM32:       For STM32 MCU: #define SYS_IWDG_OPEN        IWDG- KR=0xCCCC; #define SYS_IWDG_FEED        IWDG- KR=0xAAAA; void SystemIWDG_Config(uint32 Ove
[Microcontroller]
Analysis of STM32 Controlling Three-Axis Acceleration Sensor
I bought the stm32F107VC development board with the three-axis acceleration sensor LIS302DL and the sample code included. I studied it for a few days and summarized it as follows.   1. Logical structure Initialize each peripheral (RCC, GPIO, SPI, NVIC, I2C, LCD) - detect MEMS and display the detection status - con
[Microcontroller]
Analysis of STM32 Controlling Three-Axis Acceleration Sensor
STM32 interrupt source location
In stm32f10x.h in ...\CMSIS\Device\ST\STM32F10x, Then find the code snippet corresponding to the microcontroller model in the structure IRQn_Type. For example, STM32F103C8T6 belongs to STM32F10X_MD, The corresponding interrupt sources are: For example, STM32F103ZET6 corresponds to STM32F10X_HD
[Microcontroller]
STM32 interrupt source location
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号