1. Steps for STM32 serial port download program
1) Install "CH340 driver (USB serial port driver)_XP_WIN7 common"
2) Open the serial port download software "STM32F4 serial port download software (FLYMCU)"
3) Connect the USB interface of the development board to the USB port of the computer and power the development board
4) Set the download software as follows; click Search Serial Port, select the correct serial port number, ignore the baud rate, select the HEX file, click Start Programming to download.
2. Hardware Connection
The wiring diagram of USB to serial port CH340 is as follows.
ARM serial port TXD is connected to the RXD pin of CH340G, and RXD is connected to the TXD pin of CH340G; CH340 is 5V powered and can be powered by USB. Boot0 is set to 1 (connected to 3.3V), and boot1 is set to 0 (grounded).
3. Note: For the encrypted STM32 chip, you can unlock the download program through the serial port download program, and then you can use the emulator to download the program.
4. Notes on downloading programs with the serial port of STM32:
The USART of the stm32 microcontroller can only use usart1. Other USARTs are not available. Remember this. Pay attention to this when designing the circuit.
The last step is to restore the BOOT settings. Set boot0 to 0 and boot1 to 0. Be sure to restore the settings. Otherwise, the program will not run.
Previous article:STM32F407 serial port 2 configuration
Next article:Basic use of STM32F407 serial port
Recommended ReadingLatest update time:2024-11-16 13:03
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- The air conditioner has been too cold recently. Do you turn on the air conditioner when you work?
- Two PyCon AU 2019 talks
- MSP430 Flash Emulation Tool
- Smart MM32F0270 timer DMA mode output PWM
- If the input power may be 12V or 24V, how should the TVS diode be selected?
- About Lithium Battery Pack Monitoring, SOC and Battery Balancing Technology
- I am going to make a USB sound card myself and give a few to the forum.
- About the font design of single chip microcomputer
- Free evaluation: Pengfeng perf- V fpga development board worth thousands of yuan
- How to use IAR V7.12.1 to program MSP430 series microcontrollers